-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (41 loc) · 1.11 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Automated Documentation Update
on:
push:
branches: [ "docs-via-make" ]
env:
CARGO_TERM_COLOR: always
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'docs-via-make'
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
uses: actions-rs/cargo@v1
with:
command: install
args: --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