Skip to content

Commit 5a521e2

Browse files
committed
try ci docs
1 parent 45091a9 commit 5a521e2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,21 @@ 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
23+
- name: Build docs
24+
if: matrix.nim == '2.0.0'
2825
run: |
29-
cd nim-regex
30-
nimble docs
26+
docker pull nimlang/nim:${{ matrix.nim }}
27+
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 docs"
3128
- name: Deploy docs
3229
# to view docs on your own fork: push a gh-pages branch on your fork,
3330
# enable gh-pages in your fork
3431
# and remove `github.ref == 'refs/heads/master'` below
3532
if: |
36-
github.event_name == 'push' && github.ref == 'refs/heads/master'
33+
github.event_name == 'push' && github.ref == 'refs/heads/master' &&
34+
matrix.nim == '2.0.0'
3735
uses: crazy-max/ghaction-github-pages@v1
3836
with:
39-
build_dir: nim-regex/docs
37+
build_dir: docs
4038
target_branch: gh-pages
4139
env:
4240
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)