-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (63 loc) Β· 2.01 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Page Build
on: [push]
jobs:
build-deploy:
runs-on: ubuntu-20.04
env:
CNAME: shunk031.me
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .
- name: Typo check
uses: crate-ci/[email protected]
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.119.0"
extended: true
- name: Build
run: hugo
- name: Check broken links
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://${{ env.CNAME }}
pages_path: ./public
cmd_params: "\
--timeout=20 \
--buffer-size 8192 \
--max-connections=10 \
--max-response-body-size=70000000 \
--ignore-fragments \
-e t.co \
-e linkedin.com \
-e twitter.com \
-e facebook.com \
-e gstatic.com \
-e researchgate.net \
-e arxiv.org \
-e valuenex.com \
-e challenge2018.isic-archive.com \
-e publication/#\\d \
-e index.webmanifest \
-e honet-ict.org \
-e jsps.go.jp \
-e www.cikm2022.org \
-e hugoblox.com \
-e .*.xml \
-e shunk031.me/paper-survey \
-e shunk031.me/coloso-python-diffusion-models \
-e shunk031.me/attention-meets-perturbation \
-e drive.google.com/file/d/0B3O7bgd3mym6N214SWw3eVJCS3M/view \
-e www.mibel.cs.tsukuba.ac.jp/~ceekz/dc1 \
-e openai.com/index/chatgpt \
-e cl.sd.tmu.ac.jp \
"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public
publish_branch: gh-pages # deploying branch
cname: ${{ env.CNAME }}