File tree 1 file changed +24
-6
lines changed
1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
3
on :
4
+ push :
5
+ tags :
6
+ - ' *'
4
7
release :
5
- types : [published]
8
+ types :
9
+ - published
6
10
7
11
permissions :
8
12
contents : read
9
13
10
14
jobs :
11
15
deploy :
12
16
runs-on : ubuntu-latest
13
- environment :
14
- name : pypi
15
- url : https://pypi.org/p/subliminal
16
- permissions :
17
- id-token : write
18
17
steps :
19
18
- uses : actions/checkout@v4
20
19
- uses : actions/setup-python@v5
26
25
pip install build
27
26
- name : Build package
28
27
run : python -m build
28
+ - uses : actions/upload-artifact@v4
29
+ with :
30
+ name : Packages
31
+ path : dist/*
32
+
33
+ publish :
34
+ needs : [deploy]
35
+ environment :
36
+ name : pypi
37
+ url : https://pypi.org/p/subliminal
38
+ permissions :
39
+ id-token : write
40
+ runs-on : ubuntu-latest
41
+ if : github.event_name == 'release' && github.event.action == 'published'
42
+ steps :
43
+ - uses : actions/download-artifact@v4
44
+ with :
45
+ name : Packages
46
+ path : dist
29
47
- name : Publish package
30
48
uses : pypa/gh-action-pypi-publish@release/v1
31
49
with :
You can’t perform that action at this time.
0 commit comments