2323 name : " Build @ ${{ matrix.python-version }}"
2424 steps :
2525 - name : " Checkout Repository"
26- uses : actions/checkout@v3
26+ uses : actions/checkout@v4
2727 with :
2828 fetch-depth : 0
2929
5454 id : cached-pip-wheels
5555 uses : actions/cache@v3
5656 with :
57- path : ~/ .venv/
57+ path : .venv/
5858 key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5959
6060 - name : " Install Python deps @ ${{ matrix.python-version }}"
8181 poetry run sphinx-build -aETW --keep-going . build
8282
8383 - 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
8586 with :
8687 name : distributions
8788 path : dist/*
@@ -95,13 +96,13 @@ jobs:
9596 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
9697
9798 steps :
98- - uses : actions/checkout@v3
99+ - uses : actions/checkout@v4
99100 with :
100101 fetch-depth : 0
101102 submodules : true
102103
103104 - name : Download Artifacts
104- uses : actions/download-artifact@v2
105+ uses : actions/download-artifact@v4
105106 with :
106107 name : distributions
107108 path : dist
@@ -114,10 +115,10 @@ jobs:
114115 set -x
115116 assets=()
116117 for asset in ./dist/*.{whl,tar.gz}; do
117- assets+=("-a" " $asset")
118+ assets+=("$asset")
118119 done
119120 tag_name="${GITHUB_REF##*/}"
120- hub release create "${assets[@]} " -F "CHANGELOG.md" "$tag_name "
121+ gh release create "$tag_name " -F "CHANGELOG.md" "${assets[@]} "
121122
122123 - name : " Set up Poetry"
123124 uses : snok/install-poetry@v1
0 commit comments