Skip to content

Commit 86b5be8

Browse files
authored
Merge pull request #515 from AmbireTech/build-docs-on-gh-pages
ci - docs - workflow for deploying gh-pages docs
2 parents 51e1e7e + 67a616a commit 86b5be8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docs.yml

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

0 commit comments

Comments
 (0)