From c1eff4530e55f558c5c3ce75b181fa8fb7b808a2 Mon Sep 17 00:00:00 2001 From: konsumlamm Date: Tue, 25 Jul 2023 21:13:51 +0200 Subject: [PATCH] Fix doc.yml --- .github/workflows/doc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 8fa4cca..80ffe06 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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: @@ -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: