Skip to content

Commit 5fe6d0a

Browse files
feat: auto sync wiki (#7)
1 parent 21cc0c2 commit 5fe6d0a

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
2-
# lint all markdown files
3-
42
name: "CI"
53

64
on:
7-
push:
8-
branches:
9-
- master
105
pull_request:
116
branches:
127
- master

.github/workflows/publish-wiki.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: "Publish wiki"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- commands/**
10+
- .github/workflows/publish-wiki.yml
11+
12+
concurrency:
13+
group: "${{ github.workflow }}-${{ github.ref }}"
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: write
18+
19+
jobs:
20+
validate:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Publish wiki
27+
uses: Andrew-Chen-Wang/github-wiki-action@v4
28+
with:
29+
path: commands/

0 commit comments

Comments
 (0)