-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'auto-docs' into autodoc-test
- Loading branch information
Showing
1 changed file
with
22 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,7 @@ name: Rust | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ "autodoc-test" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
@@ -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' | ||
|