From 98505da15fae91ca35231373a4d5cc24ceb82eed Mon Sep 17 00:00:00 2001 From: carsakiller Date: Wed, 22 May 2024 14:46:03 +0000 Subject: [PATCH] chore: update workflow actions --- .github/workflows/deploy.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 508d35e..c4ccd09 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,7 @@ permissions: contents: read pages: write id-token: write + actions: read jobs: build: @@ -19,16 +20,16 @@ jobs: timeout-minutes: 15 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: pnpm/action-setup@v3 + - uses: pnpm/action-setup@v4 with: version: 8 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "pnpm" @@ -43,7 +44,7 @@ jobs: run: npm run build - name: Upload Built Website - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist/ @@ -56,20 +57,20 @@ jobs: timeout-minutes: 15 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: pnpm/action-setup@v3 + - uses: pnpm/action-setup@v4 with: version: 8 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "pnpm" - name: Retrieve output from build step - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: github-pages path: ./website-build @@ -89,7 +90,7 @@ jobs: run: npx playwright test - name: Upload Test Results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: playwright-report @@ -108,4 +109,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4