From 83875e5ce3decdaaaab31a46c4ab01fda28d48f8 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Mon, 1 Apr 2024 02:15:28 +0000 Subject: [PATCH] ci: update build workflow --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a960da4c..c65987c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,20 +59,20 @@ jobs: pnpm build - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push Docker images - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: dev/build/Dockerfile @@ -98,7 +98,7 @@ jobs: find ./_dist/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C ./_dist/ -T - - name: Upload Build Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build path: wiki-js.tar.gz @@ -110,7 +110,7 @@ jobs: steps: - name: Setup Node.js environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x @@ -120,7 +120,7 @@ jobs: corepack prepare pnpm@latest --activate - name: Download Build Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build path: build @@ -139,7 +139,7 @@ jobs: run: Compress-Archive -Path $env:GITHUB_WORKSPACE\win\* -DestinationPath wiki-js-windows.zip - name: Upload Build Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-win path: wiki-js-windows.zip