Skip to content

sobertime

sobertime #229

Workflow file for this run

name: Deploy
on: [push, workflow_dispatch]
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install mdbook
run: |
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Build docs site
run: mdbook build
- name: Upload docs site
uses: actions/upload-pages-artifact@v3
with:
path: ./book
- name: Deploy GitHub Pages
uses: actions/deploy-pages@v4