-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.17 KB
/
deploy-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
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Deploy Docs
on:
push:
branches-ignore:
- master
- dev
jobs:
build-docs:
name: Install JSDoc Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Use NodeJS v16.14.2
uses: actions/setup-node@v3
with:
node-version: 16.14.2
- name: Install jsdoc and build
run: |
chmod u+x scripts/build-docs.sh
./scripts/build-docs.sh
- name: Archive Development Artifact
uses: actions/upload-artifact@v4
with:
name: out
path: out/ph-municipalities/${{ env.version }}
retention-days: 3
deploy-docs:
name: Deploy client to Github Pages
needs: build-docs
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: out
- name: List files for publish
run: ls -l -a
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_branch: gh-pages