Skip to content

remove usage of docbuild script and replace with readme (#529) #21

remove usage of docbuild script and replace with readme (#529)

remove usage of docbuild script and replace with readme (#529) #21

Workflow file for this run

name: Publish wiki
on:
workflow_dispatch:
push:
branches:
- "master"
jobs:
generatewiki:
name: Generate WIKI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up GO
uses: actions/setup-go@v5
with:
go-version: '1.23'
check-latest: true
- name: Generate wiki
run: |
make genwiki PARAM=--verbose
- name: Publish if any changes
env:
GIT_USER_EMAIL: ${{ secrets.PERBOT_EMAIL }}
GIT_USER_NAME: ${{ secrets.PERBOT_USERNAME }}
run: |
git status
cd gopherciser.wiki
if [[ "$(git diff --name-only)" != "" ]]; then
git status
echo "publishing wiki"
set -e
git config user.email "$GIT_USER_EMAIL"
git config user.name "$GIT_USER_NAME"
git commit -a -m "Github action automatically generated wiki"
git push
else
echo "no changes skipping publish"
fi