Skip to content

cargo documentation update #18

cargo documentation update

cargo documentation update #18

Workflow file for this run

---
name: Publish Documentation
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: Prepare Documentation
run: |
mkdir -p docs
cp -r target/doc/* docs/
echo '<meta http-equiv="refresh" content="0; URL=fortran_rs">' > docs/index.html
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs