File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,12 @@ jobs:
71
71
path : ./wheelhouse/*.whl
72
72
73
73
release :
74
- if : ${{ github.ref == 'refs/heads/develop' }}
74
+ if : startsWith( github.ref, 'refs/tags/')
75
75
needs : build
76
76
runs-on : ubuntu-latest
77
77
environment : release
78
78
permissions :
79
- contents : write # to be able to publish a GitHub release
80
- issues : write # to be able to comment on released issues
81
- pull-requests : write # to be able to comment on released pull requests
82
- id-token : write # to enable use of OIDC for npm provenance
79
+ contents : write # grants permission to create a release on github
83
80
steps :
84
81
- uses : actions/checkout@v4
85
82
@@ -93,21 +90,22 @@ jobs:
93
90
merge-multiple : true
94
91
pattern : wheels-*
95
92
96
- - name : Github release
97
- uses : codfish/semantic-release-action@v3
98
- id : semantic
99
- env :
100
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101
-
102
- - name : PyPI release
103
- if : steps.semantic.outputs.new-release-published == 'true'
93
+ - name : Release PyPI
104
94
run : |
105
95
export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}"
106
96
export UV_PUBLISH_USERNAME="__token__"
107
97
uv publish --publish-url https://upload.pypi.org/legacy/
108
98
99
+ - name : Github release
100
+ id : github-release
101
+ uses : softprops/action-gh-release@v2
102
+ with :
103
+ files : dist/*
104
+ fail_on_unmatched_files : true
105
+ generate_release_notes : true
106
+
109
107
-
uses :
slackapi/[email protected]
110
- if : always() && steps.semantic.outputs.new-release-published == 'true'
108
+ if : always()
111
109
with :
112
110
method : chat.postMessage
113
111
token : ${{ secrets.SLACK_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments