Skip to content

Commit

Permalink
ci(publish): create release before publishing
Browse files Browse the repository at this point in the history
Publishing requires the tag to exist so it can get the version, so switch the order round

Signed-off-by: Ewan Harris <[email protected]>
  • Loading branch information
ewanharris authored Feb 26, 2024
1 parent d0bcc22 commit 2c8cc45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ jobs:
run: |
poetry build
- name: Publish release
uses: pypa/gh-action-pypi-publish@release/v1

# Create a release for the tag
- uses: ./.github/actions/release-create
with:
Expand All @@ -89,3 +86,6 @@ jobs:
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 2c8cc45

Please sign in to comment.