diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b25f6ad..9ad5082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_legacy: - needs: test + needs: publish if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }} runs-on: ubuntu-latest name: "supafunc: Bump version and publish" @@ -87,14 +87,9 @@ jobs: ref: ${{ github.ref }} fetch-depth: 0 token: ${{ secrets.SILENTWORKS_PAT }} - - name: Python Semantic Release - id: release - uses: python-semantic-release/python-semantic-release@v8.0.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true. # See https://github.com/actions/runner/issues/1173 - if: steps.release.outputs.released == 'true' + if: needs.publish.release.outputs.released == 'true'