[ci] Add automated Wiki publishing

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-10-07 19:57:14 +02:00
parent 61cc2d64b3
commit b589e4137d
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

38
.github/workflows/wiki-update.yml vendored Normal file
View file

@ -0,0 +1,38 @@
---
name: wiki-update
on:
push:
branches:
- master
jobs:
wiki-update:
defaults:
run:
shell: bash
container:
image: luzifer/archlinux
env:
CGO_ENABLED: 0
GOPATH: /go
runs-on: ubuntu-latest
steps:
- name: Install required packages
run: |
pacman -Syy --noconfirm \
git
- uses: actions/checkout@v3
- name: Marking workdir safe
run: git config --global --add safe.directory /__w/twitch-bot/twitch-bot
- name: Update Wiki
run: 'git push https://github.com/Luzifer/twitch-bot.wiki.git $(git subtree split --prefix wiki HEAD):refs/heads/master --force'
...