mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
chore(docs): Add doc files and wiki-sync-workflow in the repo for easy wiki edit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Sync Docs to Wiki
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "docs/**"
|
||||
- .github/workflows/wiki-sync.yml
|
||||
|
||||
concurrency:
|
||||
group: publish-wiki
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update-wiki:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Push to Wiki
|
||||
uses: Andrew-Chen-Wang/github-wiki-action@v4
|
||||
with:
|
||||
path: docs
|
||||
token: ${{ secrets.WIKI_SYNC_PAT_TOKEN }}
|
||||
commit_message: "Sync docs from main repo: ${{ github.event.head_commit.message }}"
|
||||
Reference in New Issue
Block a user