Merge pull request 'change wf order to bump before attempting to push builds' (#6) from dev into main

Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
2025-05-23 15:01:59 +01:00

View File

@@ -29,12 +29,6 @@ jobs:
uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install
- name: Build package
run: uv build
- name: Publish package
env:
USERNAME: ${{ github.repository_owner }}
run: uv publish --publish-url https://git.theprivateserver.de/api/packages/$USERNAME/pypi/ -t ${{ secrets.TOKEN }}
- name: Bump version
id: bump
run: |
@@ -56,6 +50,12 @@ jobs:
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Build package
run: uv build
- name: Publish package
env:
USERNAME: ${{ github.repository_owner }}
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
@@ -78,5 +78,7 @@ jobs:
draft: false
prerelease: false
make_latest: true
files: |
dist/*
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}