Skip to content

Commit

Permalink
CI/CD: migrate artifact actions that are deprecated
Browse files Browse the repository at this point in the history
The warnings are like this:

(for cd.yml)

    The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

    Deprecation notice: v1, v2, and v3 of the artifact actions
    The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "gribber-aarch64-apple-darwin", "gribber-x86_64-apple-darwin", "gribber-x86_64-pc-windows-msvc".
    Please update your workflow to use v4 of the artifact actions.
    Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

(for pages.yml)

    The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/configure-pages@v2, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

    The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/deploy-pages@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

    Deprecation notice: v1, v2, and v3 of the artifact actions
    The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "github-pages".
    Please update your workflow to use v4 of the artifact actions.
    Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
  • Loading branch information
noritada committed Jul 25, 2024
1 parent c75e168 commit 38bf850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
powershell Compress-Archive -Path target/${{ matrix.target }}/release/gribber.exe -DestinationPath gribber-${{ matrix.target }}.zip
- name: Upload artifacts (in non-Windows environments)
if: matrix.target != 'x86_64-pc-windows-msvc'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gribber-${{ matrix.target }}
path: gribber-${{ matrix.target }}.tar.xz
- name: Upload artifacts (in Windows environments)
if: matrix.target == 'x86_64-pc-windows-msvc'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gribber-${{ matrix.target }}
path: gribber-${{ matrix.target }}.zip
6 changes: 3 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
done
- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./dist

Expand All @@ -64,4 +64,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 38bf850

Please sign in to comment.