23
23
name : " Build @ ${{ matrix.python-version }}"
24
24
steps :
25
25
- name : " Checkout Repository"
26
- uses : actions/checkout@v3
26
+ uses : actions/checkout@v4
27
27
with :
28
28
fetch-depth : 0
29
29
54
54
id : cached-pip-wheels
55
55
uses : actions/cache@v3
56
56
with :
57
- path : ~/ .venv/
57
+ path : .venv/
58
58
key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
59
59
60
60
- name : " Install Python deps @ ${{ matrix.python-version }}"
81
81
poetry run sphinx-build -aETW --keep-going . build
82
82
83
83
- name : " Upload artifacts @ ${{ matrix.python-version}}"
84
- uses : actions/upload-artifact@v3
84
+ if : ${{ matrix.python-version == '3.11' }}
85
+ uses : actions/upload-artifact@v4
85
86
with :
86
87
name : distributions
87
88
path : dist/*
@@ -95,13 +96,13 @@ jobs:
95
96
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
96
97
97
98
steps :
98
- - uses : actions/checkout@v3
99
+ - uses : actions/checkout@v4
99
100
with :
100
101
fetch-depth : 0
101
102
submodules : true
102
103
103
104
- name : Download Artifacts
104
- uses : actions/download-artifact@v2
105
+ uses : actions/download-artifact@v4
105
106
with :
106
107
name : distributions
107
108
path : dist
@@ -114,10 +115,10 @@ jobs:
114
115
set -x
115
116
assets=()
116
117
for asset in ./dist/*.{whl,tar.gz}; do
117
- assets+=("-a" " $asset")
118
+ assets+=("$asset")
118
119
done
119
120
tag_name="${GITHUB_REF##*/}"
120
- hub release create "${assets[@]} " -F "CHANGELOG.md" "$tag_name "
121
+ gh release create "$tag_name " -F "CHANGELOG.md" "${assets[@]} "
121
122
122
123
- name : " Set up Poetry"
123
124
uses : snok/install-poetry@v1
0 commit comments