Skip to content

Commit a8d4400

Browse files
committed
Fix release workflow
1 parent 98a393b commit a8d4400

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,34 @@ permissions:
66
contents: read
77

88
jobs:
9-
build:
10-
name: Build distribution
9+
release-build:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v4
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
1714
with:
18-
python-version: 3.12
19-
- name: Install dependencies
15+
python-version: "3.x"
16+
- name: Build release distributions
2017
run: |
21-
python -m pip install --upgrade pip
2218
pip install build
23-
- name: Build source distribution
24-
run: python -m build .
25-
19+
python -m build
20+
- name: upload windows dists
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: release-dists
24+
path: dist/
2625
pypi-publish:
27-
name: Upload release to PyPI
2826
runs-on: ubuntu-latest
29-
environment:
30-
name: pypi
31-
url: https://pypi.org/p/shelloracle
27+
needs:
28+
- release-build
29+
environment: release
3230
permissions:
3331
id-token: write
3432
steps:
35-
- name: Publish package distributions to PyPI
33+
- name: Retrieve release distributions
34+
uses: actions/download-artifact@v4
35+
with:
36+
name: release-dists
37+
path: dist/
38+
- name: Publish release distributions to PyPI
3639
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)