-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 865 Bytes
/
build.yml
File metadata and controls
35 lines (33 loc) · 865 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: Build and deploy on GitHub pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 22.x
- name: Install dependencies
run: |
npm i -g yarn
yarn install
- name: Build
env:
CALENDAR_API_KEY: ${{ secrets.CALENDAR_API_KEY }}
run: yarn docusaurus build
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
CALENDAR_API_KEY: ${{ secrets.CALENDAR_API_KEY }}
BRANCH: gh-pages
FOLDER: build
TARGET_FOLDER: docs
CLEAN: true