Skip to content

Commit 9c56f1c

Browse files
committed
feat: Add workflow to publish documentation to GitHub Wiki
1 parent 9ba6294 commit 9c56f1c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish Docs to Wiki
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish-wiki:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Publish /docs to GitHub Wiki
18+
uses: SwiftDocOrg/github-wiki-publish-action@v1
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
path: docs
22+
# Optional: keep history tidy
23+
commit_message: 'docs: publish to wiki from /docs'
24+
# Optional: remove files not present in docs
25+
allow_empty_commit: false

0 commit comments

Comments
 (0)