From 1c6a0a1b2feebd211e7cfcd9b42d03d122b16c06 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Thu, 9 Apr 2026 09:02:58 +0000 Subject: [PATCH] Update .github/workflows/docs.yml --- .github/workflows/docs.yml | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bd8c265..fbf6b2a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,29 +2,33 @@ name: Deploy Gitea Pages on: push: - branches: [main] + branches: [ main ] paths: - - 'docs/**' - - 'mkdocs.yml' + - 'docs/**' + - 'mkdocs.yml' workflow_dispatch: + jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Install dependencies - run: python3 -m pip install mkdocs mkdocs-material + - name: Install dependencies + run: | + apt-get update -qq + apt-get install -y -qq python3-pip + pip3 install mkdocs mkdocs-material - - run: mkdocs build + - run: mkdocs build - - name: Deploy to Gitea Pages - run: | - cd site - git init - git config user.name "gitea-actions" - git config user.email "actions@forteapps.net" - git add . - git commit -m "Deploy docs" - git push --force "https://x-token:${{ secrets.PAGES_TOKEN }}@git.forteapps.net/Forte/launchpad.git" HEAD:gitea-pages + - name: Deploy to Gitea Pages + run: | + cd site + git init + git config user.name "gitea-actions" + git config user.email "actions@forteapps.net" + git add . + git commit -m "Deploy docs" + git push --force "https://x-token:${{ secrets.PAGES_TOKEN }}@git.forteapps.net/Forte/launchpad.git" HEAD:gitea-pages