Single-compile testing framework (#158) #106
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: Automated Documentation Update | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --local user.email "docmaster+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: Install cargo-make | |
run: rustup run stable cargo install --force --debug cargo-make | |
- name: Prepare | |
run: | | |
cargo doc --document-private-items | |
mkdir docs | |
cp -R target/doc docs/libs | |
rm -R .github | |
- name: Copy rustc docs and index page | |
run: cargo make populate-doc-dir | |
- name: Commit Doc Generation | |
run: | | |
git add docs | |
git commit -m 'Generate Documentation' | |
- name: Push Doc Update | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: 'github-actions-suck' | |
force: true |