Skip to content

Commit ac9df50

Browse files
authored
Merge pull request #248 from rust-ndarray/doc-master-github-pages
Document for master branch on GitHub Pages
2 parents c864270 + 15710aa commit ac9df50

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "GitHub Pages"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
pages:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Generate code coverage
14+
run: |
15+
RUSTDOCFLAGS="--html-in-header katex-header.html" cargo doc --no-deps
16+
mv target/doc public
17+
- name: Deploy GitHub Pages
18+
uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
publish_dir: ./public

0 commit comments

Comments
 (0)