Skip to content

Commit 145e8dc

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

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ 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+
- run: echo "ARTIFACT_NAME=dist-${{ matrix.arch }}-${{ matrix.build }}" | sed 's/\*/_/g' >> $GITHUB_ENV
54+
55+
- uses: actions/upload-artifact@v4
5456
with:
55-
name: dist
57+
name: ${{ env.ARTIFACT_NAME }}
5658
path: dist
5759

5860
release:
@@ -65,7 +67,11 @@ jobs:
6567
- uses: actions/setup-python@v5
6668
with:
6769
python-version: "3.12"
68-
- uses: actions/download-artifact@v3
70+
- uses: actions/download-artifact@v4
71+
with:
72+
pattern: dist-*
73+
merge-multiple: true
74+
path: dist
6975

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

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ 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
85+
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
8686
path: dist_proxsuite
8787

8888
release:
@@ -95,7 +95,11 @@ 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
102+
path: dist
99103

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

0 commit comments

Comments
 (0)