Skip to content

docs: readme of docs #2

docs: readme of docs

docs: readme of docs #2

Workflow file for this run

name: Deploy docs to GitHub Pages
on:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/deploy.yml'
jobs:
# Build job
deploy:
# build with hugo
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.119.0"
- name: Build
run: hugo --minify
working-directory: docs/hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public