📄 Transform ./My-page.md
source links into ./My-page
wiki links
<!-- README.md input -->
[Other page](./Other-page.md) |
<!-- Home.md result -->
[Other page](./Other-page) |
🔗 Properly rewrites links to work when deployed to the wiki tab
📛 Also renames README.md
to Home.md
🔁 See also actions4gh/configure-wiki/reverse which is the inverse of this action. It converts wiki-style links to source-style.
🚀 Here's what you're after:
# .github/workflows/deploy-wiki.yml
name: deploy-wiki
on:
push:
branches: "main"
paths: wiki/**
jobs:
deploy-wiki:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions4gh/configure-wiki@v1
- uses: actions4gh/deploy-wiki@v1
👀 Check out actions4gh/deploy-wiki!
path
: Where the wiki files are. This must be a folder. Defaults towiki/
. All files one level deep (not recursively) in this folder will be processed.
base-url
: The base URL of the wiki. Usually this is something likehttps://github.com/octocat/project/wiki/
.