-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 925 Bytes
/
Copy pathdeploy-website.yml
File metadata and controls
35 lines (33 loc) · 925 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
name: deploy website
on:
push:
branches:
- main
paths:
- website/**
- .github/workflows/deploy-website.yml
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 #v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: pnpm install
- name: Build website
run: pnpm run build:website
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e #v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build