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