Skip to content

Commit 9cb7f9a

Browse files
committed
feat: use Andrew-Chen-Wang/github-wiki-action for wiki deployment
1 parent e99d4da commit 9cb7f9a

File tree

2 files changed

+29
-103
lines changed

2 files changed

+29
-103
lines changed

.github/workflows/shell-wiki.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

.github/workflows/wiki-deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Wiki
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'wiki-pages/**'
8+
- '.github/workflows/wiki-deploy.yml'
9+
concurrency:
10+
group: publish-wiki
11+
cancel-in-progress: true
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
publish-wiki:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Move wiki pages to wiki/ folder
22+
run: |
23+
mkdir -p wiki
24+
cp wiki-pages/*.md wiki/
25+
26+
- uses: Andrew-Chen-Wang/github-wiki-action@v4
27+
with:
28+
path: wiki
29+
commit-message: "Update wiki ${{ github.sha }}"

0 commit comments

Comments
 (0)