From bc4e5b9ed9e16854d4e989be1ac15bccb3fb7bca Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 25 Feb 2024 19:28:48 +0800 Subject: [PATCH] build: add wiki deploy workflow --- .github/workflows/publish-wiki.yml | 23 +++++++++++++++++++++++ wiki/Home.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/publish-wiki.yml create mode 100644 wiki/Home.md diff --git a/.github/workflows/publish-wiki.yml b/.github/workflows/publish-wiki.yml new file mode 100644 index 000000000..b678eef0c --- /dev/null +++ b/.github/workflows/publish-wiki.yml @@ -0,0 +1,23 @@ +name: Publish wiki + +on: + push: branches-ignore: [ master ] + paths: + - 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 + with: + token: ${{ secrets.REPO_WIKI_WRITE_TOKEN }} diff --git a/wiki/Home.md b/wiki/Home.md new file mode 100644 index 000000000..39488ee43 --- /dev/null +++ b/wiki/Home.md @@ -0,0 +1 @@ +This is a Home page.