-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (37 loc) · 1.22 KB
/
build.yml
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: Build
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn builddocsts
- run: yarn distdocs
env:
GATSBY_GITHUB_REPOSITORY: ${{ github.repository }}
GATSBY_GITHUB_REF: ${{ github.ref }}
GATSBY_GITHUB_SHA: ${{ github.sha }}
NODE_OPTIONS: --max-old-space-size=4096
- name: github pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true