Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4ef36a54b | ||
| 8a0b73c60d | |||
|
c9d6d5de8f
|
|||
|
|
8d8e7549f6 | ||
| 5f09116071 | |||
|
26ef555765
|
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.8"
|
current_version = "0.2.0"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
|
|||||||
@@ -48,28 +48,20 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Add release notes to environment
|
- name: Create release notes
|
||||||
id: add_release_notes
|
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
mkdir release_notes
|
||||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
echo -e "${{ inputs.release_notes }}" >> release_notes/release_notes.md
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "Release notes:"
|
||||||
|
cat release_notes/release_notes.md
|
||||||
|
echo ""
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: uv build
|
run: uv build
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ github.repository_owner }}
|
USERNAME: ${{ github.repository_owner }}
|
||||||
run: uv publish --publish-url https://git.theprivateserver.de/api/packages/$USERNAME/pypi/ -t ${{ secrets.TOKEN }}
|
run: uv publish --publish-url https://git.theprivateserver.de/api/packages/$USERNAME/pypi/ -t ${{ secrets.TOKEN }}
|
||||||
- name: Generate changelog
|
|
||||||
id: changelog
|
|
||||||
uses: metcalfc/changelog-generator@v4.6.2
|
|
||||||
with:
|
|
||||||
myToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Get the changelog
|
|
||||||
run: |
|
|
||||||
cat << "EOF"
|
|
||||||
${{ steps.changelog.outputs.changelog }}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
@@ -78,7 +70,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: Release ${{ env.VERSION }}
|
release_name: Release ${{ env.VERSION }}
|
||||||
body: ${{ steps.changelog.outputs.changelog }}
|
body_path: release_notes/release_notes.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "komconfig"
|
name = "komconfig"
|
||||||
version = "0.1.8"
|
version = "0.2.0"
|
||||||
description = "A small library providing a config class that provides settings data for the KomSuite"
|
description = "A small library providing a config class that provides settings data for the KomSuite"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "WorldTeacher", email = "coding_contact@pm.me" }]
|
authors = [{ name = "WorldTeacher", email = "coding_contact@pm.me" }]
|
||||||
|
|||||||
Reference in New Issue
Block a user