Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Add publish action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Nov 10, 2023
1 parent af4e999 commit 8b9bd9a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Rust environment
uses: actions/setup-rust@v1
with:
toolchain: stable

- name: Build 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 8b9bd9a

Please sign in to comment.