From e0c18b0a1a0a25821c7ffdc79f45edffc04be225 Mon Sep 17 00:00:00 2001 From: shanmite Date: Fri, 29 May 2026 15:22:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker.yml | 10 +++++----- .github/workflows/mirror.yml | 2 +- .github/workflows/pkg.yml | 32 +++++++++++++++----------------- 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8f7613d..feab7f0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,18 +16,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v4 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v7 with: push: true tags: ${{ secrets.DOCKERHUB_REPO }} diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 329102d..eec0df0 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Mirror + trigger CI diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 407301d..34d32b7 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -26,31 +26,29 @@ jobs: nodev: 18 - platform: win nodev: 18 - # - platform: win - # nodev: 12 steps: - name: "Checkout codes" - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: "Use Node.js" - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: "*" - name: "Pkg this" run: | npm run pkg "node${{ matrix.nodev }}-${{ matrix.platform }}-x64" - name: "Upload to artifact" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: node${{ matrix.nodev }}-${{ matrix.platform }}-x64 path: "dist/*.zip" - name: "Upload to release draft" - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + uses: softprops/action-gh-release@v3 with: - file: "dist/*.zip" + files: "dist/*.zip" tag_name: "v2" - overwrite: true + draft: true + overwrite_files: true + token: ${{ secrets.GH_TOKEN }} arm64: runs-on: ubuntu-latest name: node18-${{ matrix.platform }}-arm64 @@ -62,20 +60,20 @@ jobs: - platform: alpine steps: - name: "Checkout codes" - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: "Pkg this" run: | npm run pkg "node18-${{ matrix.platform }}-arm64" - name: "Upload to artifact" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: node18-${{ matrix.platform }}-arm64 path: "dist/*.zip" - name: "Upload to release draft" - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + uses: softprops/action-gh-release@v3 with: - file: "dist/*.zip" + files: "dist/*.zip" tag_name: "v2" - overwrite: true + draft: true + overwrite_files: true + token: ${{ secrets.GH_TOKEN }}