@@ -38,10 +38,10 @@ jobs:
38
38
needs : test
39
39
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' }}
40
40
runs-on : ubuntu-latest
41
- name : " Bump version, create changelog and publish"
41
+ name : " supabase_functions: Bump version, create changelog and publish"
42
42
environment :
43
43
name : pypi
44
- url : https://pypi.org/p/supafunc
44
+ url : https://pypi.org/p/supabase_functions
45
45
permissions :
46
46
id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
47
47
contents : write # needed for github actions bot to write to repo
69
69
if : steps.release.outputs.released == 'true'
70
70
with :
71
71
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/[email protected]
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