-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 904 Bytes
/
deploy.yaml
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
39
40
41
42
name: Deployer
on:
push:
branches:
- master
env:
FORCE_COLOR: 3
PUBLIC_DISABLE_ANALYTICS: ''
jobs:
deploy:
name: build and deploys
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Lint source
run: pnpm lint
- name: Build app and generate PDF
run: pnpm predeploy
env:
PUBLIC_GA_MEASUREMENT_ID: ${{ vars.PUBLIC_GA_MEASUREMENT_ID }}
PUBLIC_CLARITY_ID: ${{ vars.PUBLIC_CLARITY_ID }}
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build