Skip to content

Commit 45091a9

Browse files
committed
try ci docs
1 parent 8656507 commit 45091a9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,23 @@ jobs:
2020
run: |
2121
docker pull nimlang/nim:${{ matrix.nim }}
2222
docker run --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} /bin/bash -c "git config --global --add safe.directory /usr/src/app; nimble install -y; nimble test"
23+
docs:
24+
name: Docs
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: docs
28+
run: |
29+
cd nim-regex
30+
nimble docs
31+
- name: Deploy docs
32+
# to view docs on your own fork: push a gh-pages branch on your fork,
33+
# enable gh-pages in your fork
34+
# and remove `github.ref == 'refs/heads/master'` below
35+
if: |
36+
github.event_name == 'push' && github.ref == 'refs/heads/master'
37+
uses: crazy-max/ghaction-github-pages@v1
38+
with:
39+
build_dir: nim-regex/docs
40+
target_branch: gh-pages
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)