-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (38 loc) · 980 Bytes
/
Copy pathgithub-pages.yml
File metadata and controls
38 lines (38 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy Website to GitHub Pages
on:
push:
branches: [master]
paths:
- 'website/**'
- '.github/workflows/github-pages.yml'
workflow_dispatch: {}
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: website
concurrency:
group: gh-pages
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: pnpm/action-setup@v4
with:
package_json_file: website/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: website/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm build
- uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: website/dist