From 78f493135925e9ac5eafacded9450673f89e83d0 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 26 Feb 2024 16:15:00 +0000 Subject: [PATCH] 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 --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 978a5073..5ed2aa60 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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