Skip to content

Commit 78f4931

Browse files
committed
ci(publish): create release before publishing
Publishing requires the tag to exist so it can get the version, so switch the order round Signed-off-by: Ewan Harris <[email protected]>
1 parent d0bcc22 commit 78f4931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ jobs:
7777
run: |
7878
poetry build
7979
80-
- name: Publish release
81-
uses: pypa/gh-action-pypi-publish@release/v1
82-
8380
# Create a release for the tag
8481
- uses: ./.github/actions/release-create
8582
with:
@@ -89,3 +86,6 @@ jobs:
8986
tag: ${{ steps.get_version.outputs.version }}
9087
commit: ${{ github.sha }}
9188
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}
89+
90+
- name: Publish release
91+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)