Skip to content

content: update WinBoat page for v0.9.2 (#112) #109

content: update WinBoat page for v0.9.2 (#112)

content: update WinBoat page for v0.9.2 (#112) #109

Workflow file for this run

name: Deploy Hugo site to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
# Nothing by default. pages: write and id-token: write belong to the deploy
# job alone; at the top they were also handed to the build job, which only
# needs to read the checkout.
permissions: {}
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
env:
HUGO_VERSION: 0.165.0
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: src/go.mod
- name: Install Hugo
run: |
wget -O "${{ runner.temp }}/hugo.deb" \
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" \
&& sudo dpkg -i "${{ runner.temp }}/hugo.deb"
- name: Setup Pages
id: pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
TZ: Europe/Amsterdam
# Through env rather than straight into the script: an expression
# interpolated into run: is expanded before bash ever sees it.
BASE_URL: ${{ steps.pages.outputs.base_url }}
run: |
cd src && hugo \
--gc \
--minify \
--baseURL "${BASE_URL}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ./src/public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0