-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (40 loc) · 1.16 KB
/
deploy-to-gh-pages.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
41
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
# install .codedoc dependencies
(cd .codedoc && npm install)
# install codedoc
npm install @codedoc/cli
# build repo
(PATH=$(npm bin):$PATH && codedoc build)
# copy assets
cp -r images/ dist/images/
# mark no jekyll
touch dist/.nojekyll
cp favicon.ico dist/
cp favicon-16x16.png dist/
cp favicon-32x32.png dist/
cp android-chrome-192x192.png dist/
cp android-chrome-384x384.png dist/
cp browserconfig.xml dist/
cp mstile-150x150.png dist/
cp apple-touch-icon.png dist/
cp safari-pinned-tab.svg dist/
cp site.webmanifest dist/
cp utterances.json dist/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist