2024-05-05 19:07:30 +00:00
|
|
|
name: GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master # Set a branch to deploy
|
2024-05-05 19:01:35 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-05-05 19:07:30 +00:00
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
2024-05-05 19:01:35 +00:00
|
|
|
steps:
|
2024-05-05 19:07:30 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
|
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v3
|
|
|
|
with:
|
|
|
|
hugo-version: '0.119.0'
|
|
|
|
# extended: true
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: hugo --minify
|