Skip to content

Commit 19e57cf

Browse files
authored
Update GitHub actions' versions (#424)
* cache@v2 is EOL, change to cache@v4 * upload-artifact@v3 is deprecated, use v4 with breaking changes * download-artifact@v3 to v4 with multiple artifacts due to upload@v4 * update setup-python version to v4
1 parent 3befda8 commit 19e57cf

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v3
4242
- name: Cache dependencies
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
with:
4545
path: ~/.apt/cache
4646
key: ${{ runner.os }}-apt-${{ hashFiles('**/ubuntu_dependencies.yml') }}

.github/workflows/pypi.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Move sdist to dist
2020
run: mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/
2121

22-
- uses: actions/upload-artifact@v3
22+
- uses: actions/upload-artifact@v4
2323
with:
2424
path: dist/*.tar.gz
2525

@@ -47,19 +47,21 @@ jobs:
4747
with:
4848
package-dir: ${{github.workspace}}/python/
4949

50-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
5151
with:
52+
name: artifact-${{ matrix.os }}
5253
path: ./wheelhouse/*.whl
5354

5455
pypi:
5556
if: github.event_name == 'release'
5657
needs: [cibuildwheel, build_sdist]
5758
runs-on: ubuntu-latest
5859
steps:
59-
- uses: actions/download-artifact@v3
60+
- uses: actions/download-artifact@v4
6061
with:
61-
name: artifact
62+
pattern: artifact*
6263
path: dist
64+
merge-multiple: true
6365

6466
- uses: pypa/gh-action-pypi-publish@release/v1
6567
with:

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python3
18-
uses: actions/setup-python@v3
18+
uses: actions/setup-python@v4
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)