File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 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
48
+ outputs :
49
+ is-released : ${{ steps.release.outputs.released }}
48
50
steps :
49
51
- name : Clone Repository
50
52
uses : actions/checkout@v4
92
94
id : rename_project
93
95
run : make rename_project
94
96
95
- - name : Python Semantic Release
96
- id : release
97
- uses : python-semantic-release/python-semantic-release@v9.3.0
98
- with :
99
- github_token : ${{ secrets.GITHUB_TOKEN }}
100
-
101
97
- name : Publish package distributions to PyPI
102
98
uses : pypa/gh-action-pypi-publish@release/v1
103
99
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
104
100
# See https://github.com/actions/runner/issues/1173
105
- if : steps.release .outputs.released == 'true'
101
+ if : needs.publish .outputs.is- released == 'true'
You can’t perform that action at this time.
0 commit comments