17
17
18
18
strategy :
19
19
matrix :
20
- args :
21
- - host : ubuntu-20 .04
20
+ args :
21
+ - host : ubuntu-22 .04
22
22
- host : macos-14
23
23
24
24
runs-on : ${{ matrix.args.host }}
27
27
LOGLEVEL : info
28
28
29
29
steps :
30
- - uses : actions/checkout@v3
30
+ - name : Checkout the PR branch
31
+ uses : actions/checkout@v4
32
+ with :
33
+ ref : ${{ github.head_ref }}
31
34
32
35
- name : Debug
33
36
run : |
@@ -38,12 +41,12 @@ jobs:
38
41
echo "contains(github.event.pull_request.labels, 'ci:upload-binaries'):" ${{ contains(github.event.pull_request.labels, 'ci:"upload-binaries') }}
39
42
40
43
- name : Set up Python
41
- uses : actions/setup-python@v3
44
+ uses : actions/setup-python@v5
42
45
with :
43
46
python-version : " 3.11"
44
47
45
48
- name : Install Poetry Action
46
- uses : snok/install- poetry@v1.3.4
49
+ run : python -m pip install poetry==1.4.0
47
50
48
51
- name : Print Poetry version
49
52
run : poetry --version
72
75
run : poetry build
73
76
74
77
- name : Upload test logs
75
- uses : actions/upload-artifact@v3
78
+ uses : actions/upload-artifact@v4
76
79
if : always()
77
80
with :
78
81
name : " test-logs-${{matrix.args.host}}-${{ github.event.pull_request.head.sha || github.sha }}"
@@ -81,20 +84,14 @@ jobs:
81
84
82
85
- name : Upload wheels
83
86
if : ${{ startsWith(matrix.args.host, 'ubuntu') }}
84
- uses : actions/upload-artifact@v3
87
+ uses : actions/upload-artifact@v4
85
88
with :
86
89
name : " wheel-${{ github.event.pull_request.head.sha || github.sha }}"
87
90
path : |
88
91
./dist/*
89
92
90
93
- name : Upload to release
91
94
if : ${{ github.event_name == 'release' && startsWith(matrix.args.host, 'ubuntu') }}
92
- uses : svenstaro/upload-release-action@v2
93
- with :
94
-
95
- file : dist/*
96
-
97
- # https://github.com/svenstaro/upload-release-action/issues/111#issuecomment-1794377222
98
- tag : " ${{ github.event.release.tag_name }}"
99
-
100
- file_glob : true
95
+ run : gh release create "v${{ github.event.release.tag_name }}" dist/*
96
+ env :
97
+ GH_TOKEN : ${{ github.token }}
0 commit comments