File tree 1 file changed +32
-10
lines changed
1 file changed +32
-10
lines changed Original file line number Diff line number Diff line change 13
13
- ' **.rst'
14
14
- ' docs/**'
15
15
16
+ release :
17
+ types :
18
+ - published
19
+
16
20
concurrency :
17
21
group : ${{ github.workflow }}-${{ github.ref }}
18
22
cancel-in-progress : true
@@ -21,20 +25,38 @@ jobs:
21
25
build_wheels :
22
26
strategy :
23
27
matrix :
24
- os : ["ubuntu-20.04 ", "macos-11 "]
28
+ os : ["ubuntu-latest ", "macos-latest "]
25
29
26
30
runs-on : ${{ matrix.os }}
31
+ steps :
32
+ - uses : actions/checkout@v3
33
+ - run : make requirements c_lib
34
+
35
+ - uses : actions/upload-artifact@v3
36
+ with :
37
+ path : wheelhouse/*.whl
27
38
39
+ make_sdist :
40
+ runs-on : " ubuntu-latest"
28
41
steps :
29
42
- uses : actions/checkout@v3
30
- - name : Install dependencies
31
- run : |
32
- make requirements c_lib
33
- - name : Build wheels
34
-
35
- - name : Upload packages
36
- if : github.event_name == 'push'
37
- uses : actions/upload-artifact@v3
43
+ - run : |
44
+ make requirements
45
+ python -m build --no-isolation --sdist
46
+ - uses : actions/upload-artifact@v3
47
+ with :
48
+ path : dist/*.tar.gz
49
+
50
+ upload_all :
51
+ needs : [build_wheels, make_sdist]
52
+ runs-on : " ubuntu-latest"
53
+ environment : release
54
+ if : github.event_name == 'release' && github.event.action == 'published'
55
+ permissions :
56
+ id-token : write
57
+ steps :
58
+ - uses : actions/download-artifact@v3
38
59
with :
39
60
name : ada-url-packages
40
- path : wheelhouse/*
61
+ path : wheelhouse
62
+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments