Update readme #114
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 Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Build Docs | |
run: | | |
cargo doc --no-deps --all-features | |
touch target/doc/.nojekyll # prevent jekyll from running | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.5 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: target/doc # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |