Skip to content

Commit

Permalink
ci: update Hugo action, fix folders
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 14, 2024
1 parent c95d952 commit 45da810
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.123.0'
extended: true
- name: Build
run: hugo --minify -d build
run: hugo --minify -d ./build
- name: Push build results to separate branch # purely for debuggability
if: ${{ github.event_name == 'push' }}
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -28,15 +28,17 @@ jobs:
publish_dir: ./build
publish_branch: build
- name: Serve the site # needed so we can run the link checker
env:
NPM_CONFIG_PREFIX: "~/.npm-global"
run: |
npm install -g http-server
http-server build -p 8080 &
~/.npm-global/bin/http-server build -p 8080
- name: Install filiph/linkcheck
run: |
wget https://github.com/filiph/linkcheck/releases/download/3.0.0/linkcheck-3.0.0-linux-x64.tar.gz
tar xfz linkcheck-3.0.0-linux-x64.tar.gz --strip-components=1
- name: Run linkcheck
run: ./linkcheck -e -d --check-anchors --skip-file .github/workflows/linkcheck-skipfile.txt http://localhost:8080
run: ./linkcheck -e -d --check-anchors --skip-file .github/workflows/linkcheck-skipfile.txt http://localhost:8080/docs
- uses: burnett01/rsync-deployments@796cf0d5e4b535745ce49d7429f77cf39e25ef39 # v7.0.1
if: ${{ github.event_name == 'push' }}
with:
Expand Down

0 comments on commit 45da810

Please sign in to comment.