Skip to content

ci: add correct rust actions before building docs #3

ci: add correct rust actions before building docs

ci: add correct rust actions before building docs #3

Workflow file for this run

name: GoSub Docs
# on:
# push:
# branches:
# - main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: Prepare docs
run: echo "<meta http-equiv=\"refresh\" content=\"0; url=gosub_engine\">" > target/doc/index.html
- name: Deploy to github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc