aboutsummaryrefslogtreecommitdiff
path: root/.forgejo
diff options
context:
space:
mode:
authorFangcat_Dev <f20091219@outlook.com>2026-08-15 07:28:32 +0000
committerFangcat_Dev <f20091219@outlook.com>2026-08-15 07:28:32 +0000
commite4cf9b5c57ef467ae8603c956a280742eb773f50 (patch)
tree9bbf0f1d28cc9dcdcda056734242c6c86508d013 /.forgejo
parentrevert(python): library (diff)
parentMerge pull request 'docs: advanced' (#8) from Fangcat_Dev/linux-handbook:main into main (diff)
Merge branch 'main' into 审查修改部分越界内容
Diffstat (limited to '.forgejo')
-rw-r--r--.forgejo/workflows/mkdocs-deploy.yml9
1 files changed, 4 insertions, 5 deletions
diff --git a/.forgejo/workflows/mkdocs-deploy.yml b/.forgejo/workflows/mkdocs-deploy.yml
index 473ff14..417b1f3 100644
--- a/.forgejo/workflows/mkdocs-deploy.yml
+++ b/.forgejo/workflows/mkdocs-deploy.yml
@@ -29,6 +29,7 @@ concurrency:
jobs:
build-and-deploy:
runs-on: build-env
+ # Using nikolaik/python-nodejs:python3.14-nodejs26 to avoid the setup conflict between Python and Node.js
steps:
- name: Checkout source code
uses: https://gitea.cn/actions/checkout@v4
@@ -49,15 +50,13 @@ jobs:
- name: Deploy to target repository
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
- TARGET_REPO: https://codeberg.org/LinuxCabin/handbook-site
- TARGET_BRANCH: pages
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
cd site
echo "hb.linuxcabin.top" > CNAME
git init
- git config user.name "${{ github.actor }}"
- git config user.email "${{ github.actor }}@noreply.codeberg.org"
+ git config user.name "Fangcat_Dev"
+ git config user.email "f20091219@outlook.com"
git add .
git commit -m "Deploy site $(date -u '+%Y-%m-%d %H:%M:%S UTC')"
- git push --force https://x-access-token:${DEPLOY_TOKEN}@${TARGET_REPO#https://} HEAD:${TARGET_BRANCH} \ No newline at end of file
+ git push --force "https://Fangcat_Dev:${DEPLOY_TOKEN}@codeberg.org/LinuxCabin/handbook-site.git" HEAD:pages \ No newline at end of file