Skip to content

Switched topic images #2

Switched topic images

Switched topic images #2

Workflow file for this run

name: Build and Deploy Hugo site to GitHub Pages
on:
push:
branches:
- '*' # or your primary branch
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16' # or another LTS version
- name: Install dependencies
run: npm install --save-dev postcss postcss-cli autoprefixer
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build Hugo site
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-hugo