mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 08:40:01 +00:00
[ci] Add automated Wiki publishing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
61cc2d64b3
commit
b589e4137d
1 changed files with 38 additions and 0 deletions
38
.github/workflows/wiki-update.yml
vendored
Normal file
38
.github/workflows/wiki-update.yml
vendored
Normal 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'
|
||||
|
||||
...
|
Loading…
Reference in a new issue