Skip to content

Commit

Permalink
chore: Fix various GitHub Wiki specific issues
Browse files Browse the repository at this point in the history
- Default wiki page is Home.md, not README.md
- Wiki links do not work, needs preprocessing
  • Loading branch information
lulzsun committed Apr 22, 2024
1 parent 4826ddc commit 37e49fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,30 @@ on:
paths:
- .github/wiki/**
- .github/workflows/wiki.yml

concurrency:
group: publish-wiki
cancel-in-progress: true

permissions:
contents: write

jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Rename README.md to Home.md
run: mv .github/wiki/README.md .github/wiki/Home.md

- name: Delete file
run: rm -f .github/wiki/README.md

- uses: impresscms-dev/strip-markdown-extensions-from-links-action@v1.0.0
with:
path: wiki

- uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
path: .github/wiki/

0 comments on commit 37e49fc

Please sign in to comment.