Skip to content

build static site

build static site #18

name: Deploy github page
on:
push:
branches:
- master
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.34'
# mdbook-version: 'latest'
- run: mdbook build
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Change github page source
branch: master