From e91fc8f1ba72a5543798fb77419dbb2ed4343096 Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Sat, 10 Oct 2026 20:38:14 +0800 Subject: [PATCH] Throwaway: run the publish script as a file (TirSystem/github-action issue 69) --- .gitea/workflows/publish-script-trial.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/publish-script-trial.yml diff --git a/.gitea/workflows/publish-script-trial.yml b/.gitea/workflows/publish-script-trial.yml new file mode 100644 index 0000000..960705b --- /dev/null +++ b/.gitea/workflows/publish-script-trial.yml @@ -0,0 +1,28 @@ +name: Publish script trial + +on: + push: + branches: [ verify-publish-script ] + +jobs: + publish-wiki: + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Fetch the shared script + uses: actions/checkout@v4 + with: + repository: TirSystem/github-action + ref: verify-publish-script + path: shared-scripts + + - name: Publish the pages to the wiki + env: + GITEA_API_URL: ${{ gitea.api_url }} + SOURCE_REPOSITORY: ${{ gitea.repository }} + WIKI_CREDENTIALS: ${{ secrets.TOKEN_FOR_GITEA_WIKI }} + run: python3 shared-scripts/tools/publish_wiki.py