Bump actions/checkout from 3 to 4 (#88) #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Publish Website | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-website: | |
name: Publish Website | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Restore Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install mdbook | |
run: cargo install --locked mdbook | |
- name: Build Website | |
run: mdbook build | |
- name: Deploy Website | |
uses: JamesIves/github-pages-deploy-action@v4.4.3 | |
with: | |
branch: main | |
folder: book-build | |
ssh-key: "${{ secrets.WEBSITE_DEPLOY_KEY }}" | |
repository-name: "${{ secrets.WEBSITE_DEPLOY_REPO }}" |