-
Notifications
You must be signed in to change notification settings - Fork 749
Expand file tree
/
Copy pathgh-pages.yml
More file actions
34 lines (31 loc) · 849 Bytes
/
gh-pages.yml
File metadata and controls
34 lines (31 loc) · 849 Bytes
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
name: CI
on: push
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v1
with:
submodules: true
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- run: npm run build:production
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
# publish_branch: gh-pages # default: gh-pages
# cname: www.example.com # default: no custom domain