chore(ci): 升级 GitHub Actions 版本,解决 Node.js 20 弃用警告

- actions/checkout v4 → v5
- actions/upload-artifact v4 → v5
- actions/download-artifact v4 → v5
- actions/setup-node v4 → v5
- actions/configure-pages v4 → v5
- actions/upload-pages-artifact v3 → v4
- actions/deploy-pages v4 → v5
- docker/build-push-action v5 → v6
- Node.js 版本 20 → 22
This commit is contained in:
fawney19
2026-03-12 10:34:29 +08:00
parent c4044ba0b1
commit 5c732f844a
4 changed files with 25 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ jobs:
use_cross: true use_cross: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
@@ -65,7 +65,7 @@ jobs:
tar czf ../../../../aether-hub-${{ matrix.name }}.tar.gz aether-hub tar czf ../../../../aether-hub-${{ matrix.name }}.tar.gz aether-hub
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: aether-hub-${{ matrix.name }} name: aether-hub-${{ matrix.name }}
path: aether-hub-*.tar.gz path: aether-hub-*.tar.gz
@@ -77,7 +77,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v5
with: with:
merge-multiple: true merge-multiple: true
path: artifacts path: artifacts
@@ -101,10 +101,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Download Linux artifacts - name: Download Linux artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v5
with: with:
pattern: aether-hub-linux-* pattern: aether-hub-linux-*
merge-multiple: true merge-multiple: true
@@ -162,7 +162,7 @@ jobs:
latest=auto latest=auto
- name: Build and push - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: ./aether-hub context: ./aether-hub
file: ./aether-hub/Dockerfile.ci file: ./aether-hub/Dockerfile.ci

View File

@@ -44,7 +44,7 @@ jobs:
use_cross: false use_cross: false
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
@@ -87,7 +87,7 @@ jobs:
7z a ../../../../aether-proxy-${{ matrix.name }}.zip aether-proxy.exe 7z a ../../../../aether-proxy-${{ matrix.name }}.zip aether-proxy.exe
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: aether-proxy-${{ matrix.name }} name: aether-proxy-${{ matrix.name }}
path: | path: |
@@ -101,7 +101,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v5
with: with:
merge-multiple: true merge-multiple: true
path: artifacts path: artifacts
@@ -125,10 +125,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Download Linux artifacts - name: Download Linux artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v5
with: with:
pattern: aether-proxy-linux-* pattern: aether-proxy-linux-*
merge-multiple: true merge-multiple: true
@@ -174,7 +174,7 @@ jobs:
latest=auto latest=auto
- name: Build and push - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: ./aether-proxy context: ./aether-proxy
push: true push: true
@@ -187,7 +187,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
with: with:
ref: master ref: master

View File

@@ -18,12 +18,12 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v5
with: with:
node-version: '20' node-version: '22'
cache: 'npm' cache: 'npm'
cache-dependency-path: frontend/package-lock.json cache-dependency-path: frontend/package-lock.json
@@ -41,10 +41,10 @@ jobs:
run: cp frontend/dist/index.html frontend/dist/404.html run: cp frontend/dist/index.html frontend/dist/404.html
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v4 uses: actions/configure-pages@v5
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v4
with: with:
path: frontend/dist path: frontend/dist
@@ -57,4 +57,4 @@ jobs:
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v5

View File

@@ -30,7 +30,7 @@ jobs:
outputs: outputs:
base_changed: ${{ steps.check.outputs.base_changed }} base_changed: ${{ steps.check.outputs.base_changed }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Log in to Container Registry - name: Log in to Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -108,7 +108,7 @@ jobs:
contents: read contents: read
packages: write packages: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -164,7 +164,7 @@ jobs:
org.opencontainers.image.base.hash=${{ steps.hash.outputs.hash }} org.opencontainers.image.base.hash=${{ steps.hash.outputs.hash }}
- name: Build and push base image - name: Build and push base image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
file: ./Dockerfile.base file: ./Dockerfile.base
@@ -204,7 +204,7 @@ jobs:
contents: read contents: read
packages: write packages: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -271,7 +271,7 @@ jobs:
- name: Build and push app image (amd64) - name: Build and push app image (amd64)
id: build-amd64 id: build-amd64
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
file: ./Dockerfile.app file: ./Dockerfile.app
@@ -287,7 +287,7 @@ jobs:
- name: Build and push app image (arm64) - name: Build and push app image (arm64)
id: build-arm64 id: build-arm64
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
file: ./Dockerfile.app file: ./Dockerfile.app