File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : pypi
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ permissions :
10
+ id-token : write
11
+
12
+ jobs :
13
+ build-linux :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-python@v5
18
+ with :
19
+ python-version : ' 3.10'
20
+ cache : ' pip'
21
+ - run : |
22
+ pip install auditwheel patchelf
23
+ pip wheel . -w wheel
24
+ auditwheel repair -w dist --plat=manylinux_2_17_x86_64 wheel/*.whl
25
+ - uses : actions/upload-artifact@v4
26
+ with :
27
+ name : python-package-distributions
28
+ path : dist/*.whl
29
+
30
+ build-macos :
31
+ runs-on : macos-latest
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - uses : actions/setup-python@v5
35
+ with :
36
+ python-version : ' 3.10'
37
+ cache : ' pip'
38
+ - run : |
39
+ pip wheel . -w dist
40
+ - uses : actions/upload-artifact@v4
41
+ with :
42
+ name : python-package-distributions
43
+ path : dist/*.whl
44
+
45
+ publish :
46
+ runs-on : ubuntu-latest
47
+ needs : [build-linux, build-macos]
48
+ environment :
49
+ name : pypi
50
+ url : https://pypi.org/p/pylc3
51
+ steps :
52
+ - uses : actions/download-artifact@v4
53
+ with :
54
+ name : python-package-distributions
55
+ path : dist/
56
+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments