Skip to content

larger cleanup of unneccesary files #53

larger cleanup of unneccesary files

larger cleanup of unneccesary files #53

Workflow file for this run

# .github/workflows/gh-pages.yml
name: Deploy Hugo site to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write # needed to push to gh-pages branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
extended: true
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: hugo --minify
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages # this is actually the default