Files
grm/.gitea/workflows/sync-wiki.yml
T

32 lines
764 B
YAML

name: Sync Wiki
on:
push:
branches: [master]
push:
tags:
- 'v*'
jobs:
sync-wiki:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up environment
run: make setup
- name: Sync documentation to wiki
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
PYTHONPATH: src
run: |
. .venv/bin/activate
python3 scripts/ci/sync_wiki.py --repo "${{ github.repository }}" --strict
- name: Tag wiki on release
if: startsWith(github.ref, 'refs/tags/v')
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
run: |
echo "Release tag ${{ github.ref_name }} — wiki synced with release"