Skip to content

Commit

Permalink
ci: use upload/download-artifact v4
Browse files Browse the repository at this point in the history
- handle immutable artifacts
  • Loading branch information
fabinsch committed Jan 21, 2025
1 parent b204306 commit 145e8dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
cmake --build . --config Release --target doc
- name: Archive artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: site
path: build/doc/doxygen-html
Expand All @@ -60,7 +60,7 @@ jobs:
needs: [build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: site
path: site
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ jobs:
CIBW_REPAIR_WHEEL_COMMAND: ""
CIBW_ENVIRONMENT: "CMEEL_JOBS=2 CMEEL_RUN_TESTS=OFF CMEEL_CMAKE_ARGS=-DBUILD_WITH_OPENMP_SUPPORT=ON"

- uses: actions/upload-artifact@v3
- run: echo "ARTIFACT_NAME=dist-${{ matrix.arch }}-${{ matrix.build }}" | sed 's/\*/_/g' >> $GITHUB_ENV

- uses: actions/upload-artifact@v4
with:
name: dist
name: ${{ env.ARTIFACT_NAME }}
path: dist

release:
Expand All @@ -65,7 +67,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release-osx-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ jobs:
mv dist/proxsuite*.whl dist_proxsuite
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
path: dist_proxsuite

release:
Expand All @@ -95,7 +95,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist

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

0 comments on commit 145e8dc

Please sign in to comment.