More fixes #17
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: Generate Documentation | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update | |
run: sudo apt update | |
- name: Build docs | |
run: cargo doc --no-deps | |
- name: Move docs | |
run: mv target/doc docs | |
- name: Create Index.html | |
run: echo '<meta http-equiv="refresh" content="0; url=rustdsp">' > docs/index.html | |
- name: Push to Branch | |
run: | | |
git init | |
git branch -M docs | |
git config --global user.name "Nicholas Ball" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m "Updating Doc" | |
git fetch | |
git push -f origin HEAD:docs |