Skip to content

Publish Website

Publish Website #349

Workflow file for this run

name: Publish Website
on:
schedule:
- cron: 45 4 * * MON
push:
branches:
- main
paths:
- docs/**
jobs:
website:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Clone Git Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- id: hugo
name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
- id: previous
name: Get Last Release
run: echo "::set-output name=version::$(git describe --abbrev=0 --tags)"
- id: build
name: Build Website
run: hugo --minify --printI18nWarnings --printPathWarnings --printUnusedTemplates --source docs
env:
ILO_RELEASE: ${{ steps.previous.outputs.version }}
- id: htmltest
name: Run htmltest
uses: wjdp/htmltest-action@master
with:
config: ./docs/htmltest.yml
- id: deploy
name: Deploy Website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
force_orphan: true
cname: ilo.projects.metio.wtf