diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml new file mode 100644 index 0000000..558d314 --- /dev/null +++ b/.github/workflows/page.yml @@ -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