Skip to content

fix intro

fix intro #129

Workflow file for this run

name: Build and deploy site
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Update permissions
working-directory: .
run: chmod +x ./.github/scripts/*.sh
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.120.4'
extended: true
- name: Build
run: hugo --minify
working-directory: ./
- name: Init dashboard data
working-directory: ./public
run: ../.github/scripts/dashboard_init.sh ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public