-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (34 loc) · 987 Bytes
/
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
42
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: website/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('website/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '12.x'
- run: cd website && npm install && npm run-script build
#- name: Install broken-link-checker
# run: |
# yarn add broken-link-checker-local
#- name: Check broken links
# run: |
# blcl -g --filter-level 1 -ro build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
cname: hub.qovery.com