-
-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (40 loc) · 1.03 KB
/
deploy.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: "Deploy"
on:
workflow_dispatch:
push:
branches:
- hugo
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "16.x"
cache: 'yarn'
- run: yarn
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.83.1"
extended: true
- name: Build Site
run: HUGO_ENV=production ./build.sh
- name: Check links
uses: wjdp/htmltest-action@11acebff5338acdc9363f2a5e4fc0a84f96da64e
with:
path: dist
skip_external: true
config: .htmltest.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: master
commit_message: ${{ github.event.head_commit.message }}