File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches :
88 - main
9- - release/*
109 push :
1110 tags :
1211 - " v*"
1312 branches :
1413 - main
15- - release/*
1614
1715concurrency :
1816 group : ${{ github.workflow }}-${{ github.ref }}
@@ -139,16 +137,27 @@ jobs:
139137 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
140138 needs : [ package ]
141139 runs-on : ubuntu-latest
140+ permissions :
141+ contents : write
142+ id-token : write
142143 steps :
143- - name : Release to the public PyPI repository
144- uses :
ansys/actions/[email protected] 144+
145+ - name : Download all artifacts
146+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
145147 with :
146- library-name : ${{ env.PACKAGE_NAME }}
147- twine-username : " __token__"
148- twine-token : ${{ secrets.PYPI_TOKEN }}
148+ name : ${{ env.PACKAGE_NAME }}-artifacts
149+ path : ${{ env.PACKAGE_NAME }}-artifacts
150+
151+ - name : " Upload artifacts to PyPI using trusted publisher"
152+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
153+ with :
154+ repository-url : " https://upload.pypi.org/legacy/"
155+ print-hash : true
156+ packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
157+ skip-existing : false
149158
150159 - name : Release to GitHub
151- uses : ansys/actions/release-github@v9.0
160+ uses : ansys/actions/release-github@54d45960ae9d009b2a3f26dfa687f611a85c6da3 # v10.0.11
152161 if : ${{ !env.ACT }}
153162 with :
154163 library-name : ${{ env.PACKAGE_NAME }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ requires = [
99
1010[project ]
1111name = " ansys-dynamicreporting-core"
12- version = " 0.10.1 "
12+ version = " 0.10.2 "
1313authors = [
1414 {
name =
" ANSYS, Inc." ,
email =
" [email protected] " },
1515]
You can’t perform that action at this time.
0 commit comments