ci: update build workflow

vega
NGPixel 8 months ago
parent 166f519c75
commit 83875e5ce3
No known key found for this signature in database
GPG Key ID: B755FB6870B30F63

@ -59,20 +59,20 @@ jobs:
pnpm build pnpm build
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Build and push Docker images - name: Build and push Docker images
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: dev/build/Dockerfile 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 - find ./_dist/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C ./_dist/ -T -
- name: Upload Build Artifact - name: Upload Build Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: build name: build
path: wiki-js.tar.gz path: wiki-js.tar.gz
@ -110,7 +110,7 @@ jobs:
steps: steps:
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 20.x node-version: 20.x
@ -120,7 +120,7 @@ jobs:
corepack prepare pnpm@latest --activate corepack prepare pnpm@latest --activate
- name: Download Build Artifact - name: Download Build Artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build name: build
path: build path: build
@ -139,7 +139,7 @@ jobs:
run: Compress-Archive -Path $env:GITHUB_WORKSPACE\win\* -DestinationPath wiki-js-windows.zip run: Compress-Archive -Path $env:GITHUB_WORKSPACE\win\* -DestinationPath wiki-js-windows.zip
- name: Upload Build Artifact - name: Upload Build Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: build-win name: build-win
path: wiki-js-windows.zip path: wiki-js-windows.zip

Loading…
Cancel
Save