File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
release :
11
11
runs-on : ubuntu-latest
12
- environment : release
12
+ concurrency : release
13
+ permissions :
14
+ id-token : write
15
+
13
16
steps :
14
17
- uses : actions/checkout@v3
15
18
with :
16
19
fetch-depth : 0
17
20
- name : Python Semantic Release
21
+ id : release
18
22
# https://github.com/relekang/python-semantic-release/releases
19
- uses : relekang/python-semantic-release@v7.32.2
23
+ uses : relekang/python-semantic-release@v8.0.7
20
24
with :
21
25
github_token : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name : Publish package distributions to PyPI
28
+ uses : pypa/gh-action-pypi-publish@release/v1
29
+ # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
30
+ # See https://github.com/actions/runner/issues/1173
31
+ if : steps.release.outputs.released == 'true'
32
+ with :
22
33
pypi_token : ${{ secrets.PYPI_TOKEN }}
34
+
35
+ - name : Publish package distributions to GitHub Releases
36
+ uses : python-semantic-release/upload-to-gh-release@main
37
+ if : steps.release.outputs.released == 'true'
38
+ with :
39
+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments