Skip to content

Commit 2565c37

Browse files
author
Andrew Smith
authored
fix: update job to publish legacy package if current is released (#36)
1 parent 403418c commit 2565c37

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/ci.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
github_token: ${{ secrets.GITHUB_TOKEN }}
7272
publish_legacy:
73-
needs: test
73+
needs: publish
7474
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' }}
7575
runs-on: ubuntu-latest
7676
name: "supafunc: Bump version and publish"
@@ -87,14 +87,9 @@ jobs:
8787
ref: ${{ github.ref }}
8888
fetch-depth: 0
8989
token: ${{ secrets.SILENTWORKS_PAT }}
90-
- name: Python Semantic Release
91-
id: release
92-
uses: python-semantic-release/[email protected]
93-
with:
94-
github_token: ${{ secrets.GITHUB_TOKEN }}
9590

9691
- name: Publish package distributions to PyPI
9792
uses: pypa/gh-action-pypi-publish@release/v1
9893
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
9994
# See https://github.com/actions/runner/issues/1173
100-
if: steps.release.outputs.released == 'true'
95+
if: needs.publish.release.outputs.released == 'true'

0 commit comments

Comments
 (0)