File tree 4 files changed +401
-13
lines changed
4 files changed +401
-13
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,14 @@ jobs:
37
37
version-extraction-override : ' regex:version = "(.*)"'
38
38
39
39
release :
40
- # TODO: enable once we want to release this package
41
- if : false
42
- # if: github.event_name == 'push' && github.ref_name == 'main' && needs.build.outputs.version-changed == 'true'
40
+ name : Publish package
41
+ if : github.event_name == 'push' && github.ref_name == 'main' && needs.build.outputs.version-changed == 'true'
43
42
needs : [build]
44
43
runs-on : ubuntu-latest
44
+ permissions :
45
+ id-token : write
46
+ contents : write
47
+ environment : pypi
45
48
steps :
46
49
- uses : actions/download-artifact@v3
47
50
with :
50
53
- name : Publish package on TestPyPi
51
54
uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8
52
55
with :
53
- user : __token__
54
- password : ${{ secrets.TEST_PYPI_TOKEN }}
55
56
repository-url : https://test.pypi.org/legacy/
56
57
- name : Publish package on PyPi
57
58
uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8
58
- with :
59
- user : __token__
60
- password : ${{ secrets.PYPI_TOKEN }}
61
59
- uses : actions/checkout@v3
62
60
- name : Push v${{ needs.build.outputs.new-version }} tag
63
61
run : |
You can’t perform that action at this time.
0 commit comments