Skip to content

Commit

Permalink
Fix doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumlamm committed Jul 25, 2023
1 parent 763d899 commit c1eff45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- master
env:
nim-src: src/${{ github.event.repository.name }}.nim
nim-src: ${{ github.event.repository.name }}
deploy-dir: .gh-pages
jobs:
docs:
Expand All @@ -18,9 +18,9 @@ jobs:
with:
nim-version: 'devel'
- run: nimble install -Y
- run: nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} ${{ env.nim-src }}
- run: for file in ${{ env.nim-src }}/*; do nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} $file; done
- name: "Copy to index.html"
run: cp ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
run: cp ${{ env.deploy-dir }}/theindex.html ${{ env.deploy-dir }}/index.html
- name: Deploy documents
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit c1eff45

Please sign in to comment.