File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Publish Python Package
3
+
4
+ on :
5
+ release :
6
+ types : [published]
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ build :
13
+ name : Build distribution
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Buld the distribution package
19
+ - run : pipx run build
20
+ - name : Store the distribution package
21
+ uses : actions/upload-artifact@v4
22
+ with :
23
+ name : dist
24
+ path : dist/
25
+
26
+ publish :
27
+ name : Upload release to PyPI
28
+ runs-on : ubuntu-latest
29
+ environment :
30
+ name : pypi
31
+ url : https://pypi.org/p/mpy-cross-multi
32
+ permissions :
33
+ id-token : write
34
+
35
+ steps :
36
+ - name : Download the dist
37
+ uses : actions/download-artifact@v3
38
+ with :
39
+ name : dist
40
+ path : dist/
41
+ - name : Publish package distributions to PyPI
42
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments