File tree Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change 7
7
GH_TOKEN : ${{ github.token }}
8
8
9
9
jobs :
10
- publish :
11
- name : Build and Publish
10
+ build :
11
+ name : Build
12
12
runs-on : ubuntu-latest
13
- environment :
14
- name : prod
15
- url : https://pypi.org/project/ugrc-supervisor
16
- permissions :
17
- id-token : write
18
-
19
13
steps :
20
14
- name : ⬇️ Set up code
21
15
uses : actions/checkout@v4
32
26
- name : 📦 Build package
33
27
run : pipx run build
34
28
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
+
35
53
- name : 🚀 Publish to PyPI
36
54
uses : pypa/gh-action-pypi-publish@release/v1
37
55
You can’t perform that action at this time.
0 commit comments