mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
GitHub warns that Node 20 actions are deprecated. checkout v6, cache (and cache/restore, cache/save) v5, setup-java v5, setup-node v6, upload-artifact v7, gradle setup-gradle v5 (v6 defaults to a proprietary cache provider). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
29 lines
949 B
YAML
29 lines
949 B
YAML
# Publish docs/wiki to the GitHub wiki when it changes on the default branch.
|
|
# The wiki must exist (one page made in the web editor first). It pushes
|
|
# with the workflow's token; if that is refused, add a WIKI_TOKEN secret (a
|
|
# token that can push to this repository) and it is used instead.
|
|
name: Wiki
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'docs/wiki/**'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
publish:
|
|
if: github.ref_name == github.event.repository.default_branch
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Publish docs/wiki
|
|
env:
|
|
WIKI_URL: https://x-access-token:${{ secrets.WIKI_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git
|
|
run: |
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
docs/wiki/publish.sh
|