-
Notifications
You must be signed in to change notification settings - Fork 365
53 lines (41 loc) · 984 Bytes
/
gh-page.yml
File metadata and controls
53 lines (41 loc) · 984 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: GH Pages
on:
# push:
# branches:
# - master
workflow_dispatch:
workflow_run:
workflows: ["Merge Bot"]
types: completed
jobs:
deploy:
runs-on: ubuntu-latest
name: Build and Deploy
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Yarn install
uses: actions/setup-node@v1
- run: yarn install
- name: Build DB
uses: ./.github/actions/buildDB
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build static site
run: yarn run build
- name: Upload static files as artifact
id: upload
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
path: ./dist