-
Notifications
You must be signed in to change notification settings - Fork 40
37 lines (32 loc) · 1.15 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
name: Deploy documentation app to github pages
on: workflow_dispatch
env:
NODE_VERSION: '18.x'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install
run: npm ci
- name: Build documentation
run: |
npm run build:lib
npm run library:generate:docs
npm run build:docs -- --base-href=/ng-aquila/ --no-progress
cp projects/opensource-documentation/src/404.html dist/opensource-documentation/browser
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/opensource-documentation/browser
CLEAN: true