Skip to content

Commit

Permalink
ci: update upload-/download-artifact actions (#2145)
Browse files Browse the repository at this point in the history
v3 is deprecated and has started to fail
  • Loading branch information
wpbonelli authored Jan 16, 2025
1 parent 00e4fd7 commit d9e3450
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

- name: Upload build log
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: meson-log.txt
path: modflow6/builddir/meson-logs/meson-log.txt
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
- name: Upload reports
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: compat
path: compat/*.csv
Expand All @@ -205,7 +205,7 @@ jobs:
run: pip install tabulate pandas

- name: Download reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: compat
path: .github/compat/new
Expand All @@ -228,7 +228,7 @@ jobs:
# only upload wide CSVs and Markdown tables
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: compat
path: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
run: cat run-time-comparison.md

- name: Upload benchmarks
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: run-time-comparison
path: modflow6/distribution/run-time-comparison.md
Expand All @@ -159,7 +159,7 @@ jobs:
run: cat deprecations.md

- name: Upload deprecations
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: deprecations
path: modflow6/doc/mf6io/mf6ivar/md/deprecations.md
Expand All @@ -169,7 +169,7 @@ jobs:
run: pixi run sphinx

- name: Upload RTD files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rtd-files-for-${{ github.sha }}
path: |
Expand All @@ -186,7 +186,7 @@ jobs:
run: pixi run build-docs

- name: Upload PDF documents
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mf6io.pdf
path: |
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
working-directory: ${{env.working-directory}}

- name: upload pages artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ${{env.working-directory}}/html

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ jobs:
if exist rebuilt rd /s /q downloaded
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bin-${{ steps.ostag.outputs.ostag }}
path: modflow6/bin
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
echo "ostag=$ostag" >> $GITHUB_OUTPUT
- name: Download pre-built binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bin-${{ steps.ostag.outputs.ostag }}
path: bin
Expand Down Expand Up @@ -464,7 +464,7 @@ jobs:
cat md/deprecations.md
- name: Upload deprecations
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: deprecations
path: modflow6/doc/mf6io/mf6ivar/md/deprecations.md
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
mv "doc/ReleaseNotes.pdf" "doc/release.pdf"
- name: Upload documentation artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: doc
path: doc
Expand Down Expand Up @@ -572,7 +572,7 @@ jobs:
echo "ostag=$ostag" >> $GITHUB_OUTPUT
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ needs.build.outputs.distname }}_${{ steps.ostag.outputs.ostag }}

Expand Down Expand Up @@ -682,14 +682,14 @@ jobs:
fi
- name: Upload distribution
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "${{ needs.build.outputs.distname }}_${{ steps.ostag.outputs.ostag }}"
path: "${{ needs.build.outputs.distname }}_${{ steps.ostag.outputs.ostag }}.zip"

- name: Upload release notes
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release_notes
path: "${{ needs.build.outputs.distname }}_${{ steps.ostag.outputs.ostag }}/doc/release.pdf"
Expand Down

0 comments on commit d9e3450

Please sign in to comment.