-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 986 Bytes
/
docs.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
39
40
name: Docs
on:
push:
branches:
- main
- docs/PUB-76-migration-guide
env:
CI: 'true'
NODE_ENV: 'production'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: 📦 Install dependencies
run: yarn install --immutable
- name: Add changelog to docs
run: cp CHANGELOG.md docs/changelog.md
- name: Generate Docs 🔧
run: yarn run docs
- name: Publish Github Pages 🚀
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch