Skip to content

Commit

Permalink
CI/CD: migrate 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 use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, 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: "rrr-aarch64-apple-darwin", "rrr-aarch64-unknown-linux-musl", "rrr-x86_64-apple-darwin", "rrr-x86_64-pc-windows-msvc", "rrr-x86_64-unknown-linux-musl".
    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 ci.yml)

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

(for pages.yml)

    The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, 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 use a deprecated Node.js version 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 Oct 26, 2024
1 parent 0f70b87 commit 7d46210
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
Expand Down Expand Up @@ -56,13 +56,13 @@ jobs:
powershell Compress-Archive -Path target/${{ matrix.target }}/release/rrr.exe -DestinationPath rrr-${{ 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: rrr-${{ matrix.target }}
path: rrr-${{ 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: rrr-${{ matrix.target }}
path: rrr-${{ matrix.target }}.zip
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
Expand Down Expand Up @@ -51,9 +51,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 @@ -66,4 +66,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 7d46210

Please sign in to comment.