From b589e4137dc028ba878ccc3107c169a2e7f24b71 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 7 Oct 2022 19:57:14 +0200 Subject: [PATCH] [ci] Add automated Wiki publishing Signed-off-by: Knut Ahlers --- .github/workflows/wiki-update.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/wiki-update.yml diff --git a/.github/workflows/wiki-update.yml b/.github/workflows/wiki-update.yml new file mode 100644 index 0000000..94066eb --- /dev/null +++ b/.github/workflows/wiki-update.yml @@ -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' + +...