From eb43e8adfcc77c6663f6985be9e2d88f0560de17 Mon Sep 17 00:00:00 2001 From: Brian Madden Date: Sat, 16 Sep 2023 13:56:57 -0700 Subject: [PATCH] Switch to PyPI Trusted Publishing, v0.57.0.dev8 --- .github/workflows/build_wheels.yml | 14 ++++++++------ mpf/_version.py | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 690f409c2..abd9ef547 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -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 @@ -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 \ No newline at end of file diff --git a/mpf/_version.py b/mpf/_version.py index bbf5d8c8e..09cd25733 100644 --- a/mpf/_version.py +++ b/mpf/_version.py @@ -10,7 +10,7 @@ """ -__version__ = '0.57.0.dev6' +__version__ = '0.57.0.dev8' '''The full version of MPF.''' __short_version__ = '0.57'