Skip to content

Add workflow for github pages #4

Add workflow for github pages

Add workflow for github pages #4

Workflow file for this run

name: gh-pages
on:
push:
branches:
- "main"
- "rkuris/doc-it-hurts-when-i-do-this"
pull_request:
branches:
- "main"
- "rkuris/doc-it-hurts-when-i-do-this"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: arduino/setup-protoc@v2
- name: Build
run: cargo doc --no-deps
- name: Deploy
run: |
git clean -f docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=firewood\">" > target/doc/index.html
echo "copying documentation to doc..."
cp -r target/doc ./docs