Skip to content

Commit b165390

Browse files
committed
Implement PyPI trusted publishing, v0.56.2
1 parent 4be0bd4 commit b165390

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build_wheels.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,19 @@ jobs:
175175
needs: [test_wheels, make_sdist]
176176
runs-on: ubuntu-latest
177177
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
178+
environment:
179+
name: pypi
180+
url: https://pypi.org/p/mpf
181+
permissions:
182+
id-token: write
178183
steps:
179184
- name: Download wheels
180185
uses: actions/download-artifact@v3
181186
with:
182187
name: mpf-mc_wheels
183188
path: dist
184189
- name: Publish to PyPI
185-
uses: pypa/gh-action-pypi-publish@v1.5.0
186-
with:
187-
user: __token__
188-
password: ${{ secrets.PYPI_API_TOKEN }}
190+
uses: pypa/gh-action-pypi-publish@release/v1
189191

190192
coveralls:
191193
name: Finalize Coveralls

mpfmc/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.56.1'
1+
__version__ = '0.56.2'
22
__short_version__ = '0.56'
33
__bcp_version__ = '1.1'
44
__config_version__ = '5'

0 commit comments

Comments
 (0)