Skip to content

More fixes

More fixes #17

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