@@ -38,10 +38,10 @@ jobs:
3838 needs : test
3939 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' }}
4040 runs-on : ubuntu-latest
41- name : " Bump version, create changelog and publish"
41+ name : " supabase_functions: Bump version, create changelog and publish"
4242 environment :
4343 name : pypi
44- url : https://pypi.org/p/supafunc
44+ url : https://pypi.org/p/supabase_functions
4545 permissions :
4646 id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
4747 contents : write # needed for github actions bot to write to repo
6969 if : steps.release.outputs.released == 'true'
7070 with :
7171 github_token : ${{ secrets.GITHUB_TOKEN }}
72+ publish_legacy :
73+ needs : test
74+ 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' }}
75+ runs-on : ubuntu-latest
76+ name : " supafunc: Bump version and publish"
77+ environment :
78+ name : pypi
79+ url : https://pypi.org/p/supafunc
80+ permissions :
81+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
82+ contents : write # needed for github actions bot to write to repo
83+ steps :
84+ - name : Clone Repository
85+ uses : actions/checkout@v3
86+ with :
87+ ref : ${{ github.ref }}
88+ fetch-depth : 0
89+ token : ${{ secrets.SILENTWORKS_PAT }}
90+ - name : Python Semantic Release
91+ id : release
92+ uses : python-semantic-release/python-semantic-release@v8.0.0
93+ with :
94+ github_token : ${{ secrets.GITHUB_TOKEN }}
95+
96+ - name : Publish package distributions to PyPI
97+ uses : pypa/gh-action-pypi-publish@release/v1
98+ # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
99+ # See https://github.com/actions/runner/issues/1173
100+ if : steps.release.outputs.released == 'true'
0 commit comments