Skip to content

Commit 8a39c4d

Browse files
committed
fix gh workflow
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 6c225cd commit 8a39c4d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88
env:
99
nim-version: 'stable'
10-
nim-src: src/${{ github.event.repository.name }}.nim
10+
nim-src: src/supranim_tasks.nim
1111
deploy-dir: .gh-pages
1212
jobs:
1313
docs:
@@ -21,16 +21,16 @@ jobs:
2121
- run: nimble doc --index:off --project --out:${{ env.deploy-dir }} ${{ env.nim-src }}
2222

2323
- name: "Rename to index.html"
24-
run: mv ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
24+
run: mv ${{ env.deploy-dir }}/supranim_tasks.html ${{ env.deploy-dir }}/index.html
2525

2626
- name: "Find and replace (index.html)"
27-
run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/index.html
27+
run: sed -i 's/supranim_tasks.html/index.html/g' ${{ env.deploy-dir }}/index.html
2828

2929
- name: "Find and replace (idx)"
30-
run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/${{ github.event.repository.name }}.idx
30+
run: sed -i 's/supranim_tasks.html/index.html/g' ${{ env.deploy-dir }}/supranim_tasks.idx
3131

3232
- name: "Find and replace (theindex.html)"
33-
run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/theindex.html
33+
run: sed -i 's/supranim_tasks.html/index.html/g' ${{ env.deploy-dir }}/theindex.html
3434

3535
- name: Deploy documents
3636
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)