build: github-page

This commit is contained in:
YangFong 2023-07-25 09:25:47 +08:00
parent d30813ae08
commit 08d1cf86cd

31
.github/workflows/page.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: page CI
on:
push:
branches:
- master
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Build the Rust book
run: |
cargo install mdbook
mdbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book