From 81071d920e196cb43359477205adf1fb71c9f839 Mon Sep 17 00:00:00 2001 From: Kevin Wijnen <58944808+kevin-wijnen@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:05:03 +0200 Subject: [PATCH] [feature] GitHub Actions wiki automation Initial concept for automating the BSManager Wiki via PR's to the docs/wiki folder. Requires locking the Wiki's writing to none of the public, to prevent vandalism, desyncs and losing wiki-only information, with what is on the repository. --- .github/workflows/docs.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 00000000..c70a2083 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,18 @@ +name: Publish wiki +on: + push: + branches: [main] + paths: + - docs/wiki/** + - .github/workflows/publish-wiki.yml +concurrency: + group: publish-wiki + cancel-in-progress: true +permissions: + contents: write +jobs: + publish-wiki: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: Andrew-Chen-Wang/github-wiki-action@v4