Skip to content

Commit

Permalink
Merge branch 'auto-docs' into autodoc-test
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Aug 11, 2023
2 parents 7a16fba + 9fc4d35 commit 93fa8b1
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "autodoc-test" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -16,11 +14,25 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo doc --document-private-items
- name: Zip
run: cd target/doc && tar -zcf github-pages * && mv github-pages ../..
- uses: actions/upload-pages-artifact@main
- uses: actions/deploy-pages@v1

with:
ref: 'github-actions-suck'
# Similar to `updater_docs.sh` but does not run pandoc
- name: Merge Main
run: git merge main --no-edit -s ort -X theirs
- name: Prepare
run: |
cargo doc --document-private-items
rm -R docs/libs
cp -R target/doc docs/libs
- name: Commit Doc Update
run: |
git config --local user.email "docmaster+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add docs
git commit -m 'Regenerate Documentation'
- name: Push Doc Update
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'github-actions-suck'

0 comments on commit 93fa8b1

Please sign in to comment.