Skip to content

Commit

Permalink
chore: update workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
carsakiller committed May 22, 2024
1 parent cb6cfcf commit 98505da
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:
contents: read
pages: write
id-token: write
actions: read

jobs:
build:
Expand All @@ -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"
Expand All @@ -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/

Expand All @@ -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
Expand All @@ -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
Expand All @@ -108,4 +109,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 98505da

Please sign in to comment.