Skip to content

Commit 10843c9

Browse files
committed
ci(publish): move release creation before any poetry steps
Signed-off-by: Ewan Harris <[email protected]>
1 parent 78f4931 commit 10843c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ jobs:
5858
- if: steps.tag_exists.outputs.exists == 'true'
5959
run: exit 1
6060

61+
# Create a release for the tag
62+
- uses: ./.github/actions/release-create
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
name: ${{ steps.get_version.outputs.version }}
66+
body: ${{ steps.get_release_notes.outputs.release-notes }}
67+
tag: ${{ steps.get_version.outputs.version }}
68+
commit: ${{ github.sha }}
69+
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}
70+
6171
- name: Configure Python
6272
uses: actions/setup-python@v5
6373
with:
@@ -77,15 +87,5 @@ jobs:
7787
run: |
7888
poetry build
7989
80-
# Create a release for the tag
81-
- uses: ./.github/actions/release-create
82-
with:
83-
token: ${{ secrets.GITHUB_TOKEN }}
84-
name: ${{ steps.get_version.outputs.version }}
85-
body: ${{ steps.get_release_notes.outputs.release-notes }}
86-
tag: ${{ steps.get_version.outputs.version }}
87-
commit: ${{ github.sha }}
88-
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}
89-
9090
- name: Publish release
9191
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)