Skip to content

Commit

Permalink
build: github-page
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Jul 25, 2023
1 parent d30813a commit 08d1cf8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08d1cf8

Please sign in to comment.