Skip to content

Commit 7e7e01c

Browse files
feat(ci): automatically sync to wiki
1 parent f426ac0 commit 7e7e01c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/sync.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Update wiki
2+
on:
3+
push:
4+
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Update wiki
10+
run: |
11+
mkdir -p ~/.ssh
12+
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
13+
chmod 600 ~/.ssh/id_ed25519
14+
15+
ssh-keyscan github.com > ~/.ssh/known_hosts
16+
17+
git clone --bare [email protected]:winapps-org/docs.git
18+
git -C docs.git push --mirror [email protected]:winapps-org/winapps.wiki.git
19+
env:
20+
DEPLOY_KEY: "${{ secrets.DEPLOY_KEY }}"
21+

0 commit comments

Comments
 (0)