Skip to content

Commit

Permalink
ci: update upload-artifact and download-artifact actions to v4
Browse files Browse the repository at this point in the history
v3 of `actions/upload-artifact` and `actions/download-artifact` will be
fully deprecated by 5 December 2024. Jobs that are scheduled to run
during the brownout periods will also fail. See [1][2].

[1]: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
[2]: https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
  • Loading branch information
Juneezee committed Nov 15, 2024
1 parent 39f94e9 commit 9c23bf1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/bench-turborepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
run: pnpm -F @turbo/benchmark ttft "${{ steps.filename.outputs.filename }}"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: profiles # This name will be the folder each file gets downloaded to
name: profiles-${{ matrix.os.name }} # This name will be the folder each file gets downloaded to
if-no-files-found: error
# cwd is root of the repository, so we need the benchmark/ prefixed path
path: |
Expand All @@ -112,10 +112,11 @@ jobs:
uses: ./.github/actions/setup-node

- name: Download profiles
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: profiles
path: packages/turbo-benchmark/profiles/
pattern: profiles-*
merge-multiple: true

- name: Display TTFT Data
shell: bash
Expand Down Expand Up @@ -146,10 +147,11 @@ jobs:
uses: ./.github/actions/setup-node

- name: Download profiles
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: profiles
path: packages/turbo-benchmark/profiles/
pattern: profiles-*
merge-multiple: true

- name: Display TTFT Data
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: ${{ matrix.settings.rust-build-env }} cargo build --profile release-turborepo-lsp -p turborepo-lsp --target ${{ matrix.settings.target }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: turborepo-lsp-${{ matrix.settings.target }}
path: target/${{ matrix.settings.target }}/release-turborepo-lsp/turborepo-lsp*
4 changes: 2 additions & 2 deletions .github/workflows/turborepo-compare-cache-item.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
turbo run build --filter=docs --filter=web --summarize --skip-infer -vvv
- name: Grab Turborepo artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cache-item-${{ matrix.os }}-${{ inputs.version }}
path: |
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
pnpm dlx create-turbo@${{ inputs.version }} my-turborepo pnpm
- name: Download cache artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: cache-item-${{ matrix.cache_os }}-${{ inputs.version }}
path: my-turborepo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/turborepo-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
${{ matrix.settings.rust_env }} pnpm build:release --target=${{ matrix.settings.target }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: turbo-library-${{ matrix.settings.target }}
path: packages/turbo-repository/native
Expand All @@ -138,7 +138,7 @@ jobs:
git config --global user.email 'turbobot@vercel.com'
- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: native-packages

Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
mv *.tgz tarballs/
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Upload Tarballs
path: tarballs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
run: ${{ matrix.settings.rust-build-env }} cargo build --profile release-turborepo -p turbo --target ${{ matrix.settings.target }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: turbo-${{ matrix.settings.target }}
path: target/${{ matrix.settings.target }}/release-turborepo/turbo*
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

- name: Download Rust artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: rust-artifacts

Expand All @@ -239,7 +239,7 @@ jobs:

# Upload published artifacts in case they are needed for debugging later
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: turbo-combined
path: cli/dist
Expand Down

0 comments on commit 9c23bf1

Please sign in to comment.