diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 08f9d68..64e7285 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -8,10 +8,14 @@ on: - main jobs: + build: + uses: ./.github/workflows/build.yml + publish-to-pypi: name: Publish to PyPI # if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes - uses: ./.github/workflows/build.yml + needs: + - build runs-on: ubuntu-latest environment: diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index f0b813d..a514ed0 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -7,6 +7,9 @@ on: - dev jobs: + build: + uses: ./.github/workflows/build.yml + publish-to-testpypi: name: Publish to TestPyPI # Only on dev pushes @@ -14,7 +17,8 @@ jobs: # Run on untagged push # if: ${{ !startsWith(github.ref, 'refs/tags/') }} # if: ${{ github.ref == 'refs/heads/dev' }} - uses: ./.github/workflows/build.yml + needs: + - build runs-on: ubuntu-latest environment: