Skip to content

Commit 4da1cf2

Browse files
committed
ci - docs - workflow for deploying gh-pages docs
1 parent 51e1e7e commit 4da1cf2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
branches:
4+
- build-docs-on-gh-pages
5+
# - aip-61-adex-v5
6+
7+
name: Deploy docs
8+
9+
jobs:
10+
deploy-docs:
11+
name: Deploy docs on gh-pages
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
submodules: true
17+
- name: Build docs
18+
run: cargo doc --no-deps
19+
- name: Prepare /docs & index file
20+
run: |
21+
rm -rf ./docs
22+
echo "<meta http-equiv=\"refresh\" content=\"0; url=sentry\">" > target/doc/index.html
23+
cp -r target/doc ./docs
24+
- name: Deploy gh-pages
25+
# if: github.ref == 'refs/heads/aip-61-adex-v5'
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: ./docs

0 commit comments

Comments
 (0)