Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <georgelemon@protonmail.com>
  • Loading branch information
georgelemon committed Apr 1, 2024
1 parent c2e120f commit 35417c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# - main
env:
nim-version: 'stable'
nim-src: src/${{ github.event.repository.name }}.nim
nim-src: src/mailersend.nim
deploy-dir: .gh-pages
jobs:
docs:
Expand All @@ -21,16 +21,16 @@ jobs:
- run: nim doc --index:on --project --path:. --out:${{ env.deploy-dir }} ${{ env.nim-src }}

- name: "Rename to index.html"
run: mv ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
run: mv ${{ env.deploy-dir }}/mailersend.html ${{ env.deploy-dir }}/index.html

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

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

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

- name: Deploy documents
uses: peaceiris/actions-gh-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -Y
- run: nim c -r src/${{ github.event.repository.name }}.nim
- run: nim c -r src/mailersend.nim
- run: nimble test

0 comments on commit 35417c1

Please sign in to comment.