Skip to content

Commit

Permalink
Switch to PyPI Trusted Publishing, v0.57.0.dev8
Browse files Browse the repository at this point in the history
  • Loading branch information
toomanybrians committed Sep 16, 2023
1 parent 9b51427 commit eb43e8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
build_wheels:
name: Push new release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mpf
permissions:
id-token: write

steps:
- name: Checkout MPF
Expand All @@ -23,19 +28,16 @@ jobs:
run: |
pip install --upgrade pip setuptools wheel build
pip install -e .
- name: Run tests
run: python -m unittest discover -s mpf/tests

- name: Build wheel
run: python -m build

- uses: actions/upload-artifact@v3
with:
path: ./dist/*.*

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print_hash: true
2 changes: 1 addition & 1 deletion mpf/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

__version__ = '0.57.0.dev6'
__version__ = '0.57.0.dev8'
'''The full version of MPF.'''

__short_version__ = '0.57'
Expand Down

0 comments on commit eb43e8a

Please sign in to comment.