- publish-wiki-pages.yml: reusable workflow with wiki_dir, prune and tools-ref inputs and the declared secret TOKEN_FOR_GITEA_WIKI - tools/publish_wiki.py: WIKI_PRUNE selects explicit mode without the marker; a missing folder is a configuration error - publish-own-wiki.yml: this repository calls the reusable workflow - wiki/ moves to docs/wiki/; build_wiki.py and its tests follow - the scoped publish-wiki.yml is marked deprecated, not removed - guides, README and the Danish and Bahasa Malaysia wiki pages describe the caller, docs/wiki/ and the new error messages Task: MIL-008#2 Task: MIL-008#4 Task: MIL-008#5 Task: MIL-008#6
26 lines
751 B
YAML
26 lines
751 B
YAML
name: Publish own wiki
|
|
|
|
# Publishes the wiki of this repository from docs/wiki/ by calling the
|
|
# reusable workflow of this repository (ADR-0009, MIL-008 task 4). It is the
|
|
# caller a project copies from framework/templates/ci/publish-wiki.yml, with
|
|
# two differences: the reusable workflow is called by its local path, and
|
|
# tools-ref is main so that the script that is run is the one of this commit.
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- "docs/wiki/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
wiki:
|
|
permissions:
|
|
contents: read
|
|
uses: ./.gitea/workflows/publish-wiki-pages.yml
|
|
with:
|
|
wiki_dir: docs/wiki
|
|
prune: "true"
|
|
tools-ref: main
|
|
secrets:
|
|
TOKEN_FOR_GITEA_WIKI: ${{ secrets.TOKEN_FOR_GITEA_WIKI }}
|