Skip to content

Commit 876998b

Browse files
committed
1 parent da53e5f commit 876998b

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,9 @@ env:
77
GH_TOKEN: ${{ github.token }}
88

99
jobs:
10-
publish:
11-
name: Build and Publish
10+
build:
11+
name: Build
1212
runs-on: ubuntu-latest
13-
environment:
14-
name: prod
15-
url: https://pypi.org/project/ugrc-supervisor
16-
permissions:
17-
id-token: write
18-
1913
steps:
2014
- name: ⬇️ Set up code
2115
uses: actions/checkout@v4
@@ -32,6 +26,30 @@ jobs:
3226
- name: 📦 Build package
3327
run: pipx run build
3428

29+
- name: ⬆️ Upload artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: build-artifacts
33+
path: dist
34+
retention-days: 1
35+
36+
publish:
37+
name: Publish
38+
runs-on: ubuntu-latest
39+
needs: build
40+
environment:
41+
name: prod
42+
url: https://pypi.org/project/ugrc-supervisor
43+
permissions:
44+
id-token: write
45+
46+
steps:
47+
- name: ⬇️ Download artifacts
48+
uses: actions/download-artifact@v4
49+
with:
50+
name: build-artifacts
51+
path: dist
52+
3553
- name: 🚀 Publish to PyPI
3654
uses: pypa/gh-action-pypi-publish@release/v1
3755

0 commit comments

Comments
 (0)