File tree Expand file tree Collapse file tree 3 files changed +45
-19
lines changed
Expand file tree Collapse file tree 3 files changed +45
-19
lines changed Original file line number Diff line number Diff line change 1- HUGO_VERSION = 0.107.0
1+ HUGO_VERSION = " 0.107.0"
2+ DOCSY_VERSION = " v0.6.0"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Run htmltest over rendered content
2+ on :
3+ push :
4+ pull_request :
5+ branches : [ "develop" ]
6+
7+ jobs :
8+ htmltest :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+
13+ - name : Read .env hugo version
14+ id : hugo-version
15+ run : |
16+ . ./.env
17+ echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
18+ echo "::set-output name=DOCSY_VERSION::${DOCSY_VERSION}"
19+
20+ - name : Add hugo nodejs dependencies
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : " 18"
24+
25+ - name : Setup Hugo
26+ uses : peaceiris/actions-hugo@v2
27+ with :
28+ # sync versions with docker-compose .env ala
29+ # https://github.com/marketplace/actions/hugo-setup#%EF%B8%8F-read-hugo-version-from-file
30+ hugo-version : " ${{ steps.hugo-version.outputs.HUGO_VERSION }}"
31+ extended : true
32+
33+ - name : Build Hugo site
34+ env :
35+ HUGO_ENV : " production"
36+ run : |
37+ yarn install
38+ hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
39+ hugo mod get github.com/google/docsy@${{ steps.hugo-version.outputs.DOCSY_VERSION }}
40+ hugo --minify -d $GITHUB_WORKSPACE/dist
41+ - name : run htmltest
42+ continue-on-error : true
43+ uses : wjdp/htmltest-action@master
You can’t perform that action at this time.
0 commit comments