-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) Β· 862 Bytes
/
default.yaml
File metadata and controls
36 lines (32 loc) Β· 862 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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v2
- name: Cache β
id: cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{runner.OS}}-npm-caches-${{ hashFiles('package-lock.json') }}
- name: Install π§
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Build π§
run: |
npm run build
cd docs
cp index.html 404.html
echo "${{ secrets.CNAME }}" > CNAME
- name: Deploy π
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs