Skip to content

Commit

Permalink
ci(publish): move release creation before any poetry steps
Browse files Browse the repository at this point in the history
Signed-off-by: Ewan Harris <[email protected]>
  • Loading branch information
ewanharris committed Feb 26, 2024
1 parent 78f4931 commit 10843c9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ jobs:
- if: steps.tag_exists.outputs.exists == 'true'
run: exit 1

# Create a release for the tag
- uses: ./.github/actions/release-create
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.get_version.outputs.version }}
body: ${{ steps.get_release_notes.outputs.release-notes }}
tag: ${{ steps.get_version.outputs.version }}
commit: ${{ github.sha }}
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}

- name: Configure Python
uses: actions/setup-python@v5
with:
Expand All @@ -77,15 +87,5 @@ jobs:
run: |
poetry build
# Create a release for the tag
- uses: ./.github/actions/release-create
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.get_version.outputs.version }}
body: ${{ steps.get_release_notes.outputs.release-notes }}
tag: ${{ steps.get_version.outputs.version }}
commit: ${{ github.sha }}
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}

- name: Publish release
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 10843c9

Please sign in to comment.