Skip to content

Commit

Permalink
Use Hugo setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuschko committed Dec 18, 2023
1 parent 9783f5d commit 691c916
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/linux-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.84.0'
- name: Clean
run: rm -rf public || exit 0
- name: Install tools
run: |
gem install asciidoctor
wget https://github.com/gohugoio/hugo/releases/download/v0.84.0/hugo_0.84.0_Linux-64bit.tar.gz -O /tmp/hugo.tar.gz
wget https://github.com/bmuschko/link-verifier/releases/download/v0.7/link-verifier-0.7-linux-amd64.tar.gz -O /tmp/link-verifier.tar.gz
tar -xvf /tmp/hugo.tar.gz
tar -xvf /tmp/link-verifier.tar.gz
export PATH=$PATH:$PWD/hugo/:$PWD/link-verifier/
export PATH=$PATH:$PWD/link-verifier/
# - name: Verify links
# run: ./link-verifier --dirs layouts --includes *.html --ignore-status-codes 999,400,429,403 --timeout 90
- name: Build website
Expand Down

0 comments on commit 691c916

Please sign in to comment.