Skip to content

[content] gitlab issue template #50

[content] gitlab issue template

[content] gitlab issue template #50

Workflow file for this run

name: github pages
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
types: [closed]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- 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: 'latest'
extended: true
- uses: actions/cache@v4
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build Web
run: hugo --minify --config hugo_gh_pages.toml
- name: Deploy Web
uses: peaceiris/actions-gh-pages@v4
with:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./public
commit_message: ${{ github.event.head_commit.message }}