From 85783c6fb90c9b33ec3b38eb5b4ff9ff4ee4a50f Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Wed, 3 Jan 2024 18:49:14 -0800 Subject: [PATCH] Only run publish step once build is done Signed-off-by: Nic Cope --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10c64d5..a5bbee4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: - name: Upload Sdist and Wheel to GitHub uses: actions/upload-artifact@v4 with: - name: module + name: dist path: "dist/*" if-no-files-found: error retention-days: 1 @@ -95,12 +95,14 @@ jobs: publish: # Don't publish unless we were run with an explicit version. if: ${{ inputs.version != '' }} + needs: + - build runs-on: ubuntu-22.04 steps: - name: Download Sdist and Wheel from GitHub uses: actions/download-artifact@v4 with: - name: module + name: dist path: "dist" - name: Publish to PyPI