Skip to content

Commit

Permalink
Bump actions/download-artifact from 3 to 4 (#1186)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ofek Lev <[email protected]>
  • Loading branch information
dependabot[bot] and ofek committed Mar 4, 2024
1 parent e2ae3f6 commit 03b1bca
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 36 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/build-hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: python -m build

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-artifacts
path: dist/*
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Download Python artifacts
if: ${{ !startsWith(github.event.ref, 'refs/tags') }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist
Expand Down Expand Up @@ -189,17 +189,17 @@ jobs:
- name: Upload staged archive
if: runner.os != 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: staged-${{ runner.os }}
name: staged-${{ runner.os }}-${{ matrix.job.target }}
path: packaging/*
if-no-files-found: error

- name: Upload archive
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: standalone
name: standalone-${{ matrix.job.target }}
path: packaging/*
if-no-files-found: error

Expand All @@ -225,10 +225,11 @@ jobs:
run: pip install pyoxidizer==${{ env.PYOXIDIZER_VERSION }}

- name: Download staged binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: staged-${{ runner.os }}
pattern: staged-${{ runner.os }}-*
path: archives
merge-multiple: true

- name: Extract staged binaries
run: |-
Expand Down Expand Up @@ -261,17 +262,18 @@ jobs:
mv build/*/release/*/*.{exe,msi} installers
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: standalone
name: standalone-${{ runner.os }}
path: archives/*
if-no-files-found: error

- name: Upload installers
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: installers
name: installers-${{ runner.os }}
path: installers/*
if-no-files-found: error

macos-packaging:
name: Build macOS installer and sign/notarize artifacts
Expand Down Expand Up @@ -304,10 +306,11 @@ jobs:
tar --strip-components=1 -xzf - -C /usr/local/bin "$ARCHIVE_NAME/rcodesign"
- name: Download staged binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: staged-${{ runner.os }}
pattern: staged-${{ runner.os }}-*
path: archives
merge-multiple: true

- name: Extract staged binaries
run: |-
Expand Down Expand Up @@ -422,17 +425,18 @@ jobs:
"signed/${{ steps.pkg.outputs.path }}"
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: standalone
name: standalone-${{ runner.os }}
path: archives/*
if-no-files-found: error

- name: Upload installer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: installers
name: installers-${{ runner.os }}
path: signed/${{ steps.pkg.outputs.path }}
if-no-files-found: error

publish:
name: Publish release
Expand All @@ -450,22 +454,24 @@ jobs:

steps:
- name: Download Python artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist

- name: Download binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: standalone
pattern: standalone-*
path: archives
merge-multiple: true

- name: Download installers
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: installers
pattern: installers-*
path: installers
merge-multiple: true

- name: Add assets to current release
uses: softprops/action-gh-release@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-hatchling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Build source distribution
run: python -m build backend

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: backend/dist/*
path: backend/dist
if-no-files-found: error

publish:
Expand All @@ -35,7 +35,7 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifacts
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Create archive
run: git archive -o site.zip gh-pages

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: documentation
path: site.zip
Expand All @@ -73,7 +73,7 @@ jobs:
- build

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: documentation

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Create archive
run: git archive -o site.zip gh-pages

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: documentation
path: site.zip
Expand All @@ -76,7 +76,7 @@ jobs:
- build

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: documentation

Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
run: mv .coverage ".coverage.${{ matrix.os }}.${{ matrix.python-version }}"

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: .coverage.*
name: coverage-${{ matrix.os }}-${{ matrix.python-version }}
path: .coverage*

coverage:
name: Report coverage
Expand All @@ -82,9 +82,10 @@ jobs:
run: hatch build --hooks-only

- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-*
merge-multiple: true

- name: Combine coverage data
run: hatch run coverage:combine
Expand All @@ -95,7 +96,7 @@ jobs:
hatch run coverage:report-uncovered-html
- name: Upload uncovered HTML report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uncovered-html-report
path: htmlcov
Expand Down

0 comments on commit 03b1bca

Please sign in to comment.