-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.07 KB
/
github-pages.yaml
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
# Workflow to build and deploy Integrator's Guide to GH pages with Hugo
name: github pages
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Hugo setup
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.99.1'
extended: true
- name: Node setup
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: '${{github.workspace}}/package-lock.json'
- run: npm ci
- name: Clean public directory
run: rm -rf public
- name: Build Hugo
run: hugo --minify
# uncomment when cname is complete
# - name: Create cname file
# run: echo 'www.example.com' > public/CNAME
# push to gh-pages branch
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: integrators.vertica.com