File tree 2 files changed +108
-0
lines changed
2 files changed +108
-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/
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/
44
+
45
+ publish :
46
+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
47
+ runs-on : ubuntu-latest
48
+ needs : [build-linux, build-macos],
49
+ environment :
50
+ name : pypi
51
+ url : https://pypi.org/p/pylc3
52
+ steps :
53
+ - uses : actions/download-artifact@v4
54
+ with :
55
+ name : python-package-distributions
56
+ path : dist/
57
+ - uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change
1
+ name : wheels
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 :
14
+ strategy :
15
+ matrix :
16
+ os : [macos13, macos-latest]
17
+ # os: [ubuntu-latest, macos13, macos-latest]
18
+
19
+ runs-on : ${{ matrix.os }}
20
+ environment :
21
+ name : pypi
22
+ url : https://pypi.org/p/pylc3
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-python@v5
26
+ with :
27
+ python-version : ' 3.10'
28
+ cache : ' pip'
29
+ - if : ${{ matrix.os == 'ubuntu-latest' }}
30
+ run : |
31
+ pip install auditwheel patchelf
32
+ pip wheel . -w wheel
33
+ auditwheel repair -w dist --plat=manylinux_2_17_x86_64 wheel/*.whl
34
+ - if : ${{ matrix.os == 'macos13' || matrix.os == 'macos-latest' }}
35
+ run : |
36
+ pip wheel . -w dist
37
+ - uses : actions/upload-artifact@v4
38
+ with :
39
+ name : python-package-distributions
40
+ path : dist/
41
+
42
+ publish :
43
+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
44
+ runs-on : ubuntu-latest
45
+ needs : build
46
+ steps :
47
+ - uses : actions/download-artifact@v4
48
+ with :
49
+ name : python-package-distributions
50
+ path : dist/
51
+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments