Skip to content

Commit d78bafc

Browse files
committed
Make build and publish steps sequential
1 parent 3e97353 commit d78bafc

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
build-and-publish:
99
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/wiremock
13+
permissions:
14+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1015
steps:
1116
- uses: actions/checkout@v3
1217
- name: Set up Python
@@ -19,15 +24,5 @@ jobs:
1924
run: poetry install
2025
- name: Build distributions
2126
run: poetry build
22-
23-
pypi-publish:
24-
name: Upload release to PyPI
25-
runs-on: ubuntu-latest
26-
environment:
27-
name: pypi
28-
url: https://pypi.org/p/wiremock
29-
permissions:
30-
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
31-
steps:
32-
- name: Publish package distributions to PyPI
27+
- name: Publish to PyPI
3328
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)