Skip to content

Commit 4ea9254

Browse files
committed
ci: use upload/download-artifact v4
- handle immutable artifacts
1 parent b204306 commit 4ea9254

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
cmake --build . --config Release --target doc
5151
5252
- name: Archive artifacts
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: site
5656
path: build/doc/doxygen-html
@@ -60,7 +60,7 @@ jobs:
6060
needs: [build]
6161
steps:
6262
- name: Download artifacts
63-
uses: actions/download-artifact@v2
63+
uses: actions/download-artifact@v4
6464
with:
6565
name: site
6666
path: site

.github/workflows/release-linux.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
CIBW_REPAIR_WHEEL_COMMAND: ""
5151
CIBW_ENVIRONMENT: "CMEEL_JOBS=2 CMEEL_RUN_TESTS=OFF CMEEL_CMAKE_ARGS=-DBUILD_WITH_OPENMP_SUPPORT=ON"
5252

53-
- uses: actions/upload-artifact@v3
53+
- uses: actions/upload-artifact@v4
5454
with:
55-
name: dist
55+
name: dist-${{ matrix.arch }}-${{ matrix.build | replace("*", "") }}
5656
path: dist
5757

5858
release:
@@ -65,7 +65,10 @@ jobs:
6565
- uses: actions/setup-python@v5
6666
with:
6767
python-version: "3.12"
68-
- uses: actions/download-artifact@v3
68+
- uses: actions/download-artifact@v4
69+
with:
70+
pattern: dist-*
71+
merge-multiple: true
6972

7073
- name: Publish package to PyPI
7174
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release-osx-win.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ jobs:
8080
mv dist/proxsuite*.whl dist_proxsuite
8181
8282
- name: Archive artifacts
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
85-
name: dist
86-
path: dist_proxsuite
85+
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
86+
path: dist
8787

8888
release:
8989
needs: "build-wheel"
@@ -95,7 +95,10 @@ jobs:
9595
- uses: actions/setup-python@v5
9696
with:
9797
python-version: "3.12"
98-
- uses: actions/download-artifact@v3
98+
- uses: actions/download-artifact@v4
99+
with:
100+
pattern: dist-*
101+
merge-multiple: true
99102

100103
- name: Publish package to PyPI
101104
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)