Publish Hugo site with GitHub Actions

Published:
Talks about: , , , and

The peaceiris/actions-gh-pages action allows to publish a Hugo site in your GitHub Action.

name: <PIPELINE>
jobs:
  build:
    runs-on: <RUN_ON>
    steps:
      - name: Deploy Website
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: <PUBLISH_DIR>
          force_orphan: true
          cname: <CNAME>