diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a83c033..b951c92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,13 @@ on: types: [published] jobs: - build: + build-and-publish: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/wiremock + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v3 - name: Set up Python @@ -19,15 +24,5 @@ jobs: run: poetry install - name: Build distributions run: poetry build - - pypi-publish: - name: Upload release to PyPI - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/wiremock - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing - steps: - - name: Publish package distributions to PyPI + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1