forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 949 Bytes
/
publish-docs-rs.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
name:docker owner/repo@[email protected]
branches: [main]
path: docker
jobs:
build_docs:
name: Build docs
runs-on: github
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust
- run: cargo doc --no-deps
- uses: actions/upload-artifact@v3
with:
name: docs_rs
path: ./target/doc/
commit_docs:
name: Commit docs
needs: build_docs
runs-on: internet
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
- uses: actions/download-artifact@v3
with:
name: docs_rs
path: ./target/doc
- run: ls -a
- run: rm -rf ./docs/docs.rs
- run: mkdir docs || true # || true to make sure exit code is 0 even if dir exists
- run: cp -r ./target/doc ./docs/docs.rs
- uses: git-auto-commit-action@v4
with:
commit_message: Update (${{ github.sha }})