Skip to content

Commit

Permalink
Make build and publish steps sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeywaites committed May 14, 2023
1 parent 3e97353 commit d78bafc
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d78bafc

Please sign in to comment.