aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mkdocs-deploy.yml
diff options
context:
space:
mode:
authorFangcatChina <f20091219@outlook.com>2026-08-14 11:43:01 +0000
committerFangcatChina <f20091219@outlook.com>2026-08-14 14:39:38 +0000
commit7a75cdf0d395f179a27f69e9829e3c9e39302223 (patch)
treecb349d0d9dbbfdfa04f2f0c4800b01f381027d77 /.github/workflows/mkdocs-deploy.yml
parentfix: tuna mirror (diff)
feat: new workflow
Diffstat (limited to '')
-rw-r--r--.forgejo/workflows/mkdocs-deploy.yml (renamed from .github/workflows/mkdocs-deploy.yml)17
1 files changed, 7 insertions, 10 deletions
diff --git a/.github/workflows/mkdocs-deploy.yml b/.forgejo/workflows/mkdocs-deploy.yml
index 9a96a0d..efb6592 100644
--- a/.github/workflows/mkdocs-deploy.yml
+++ b/.forgejo/workflows/mkdocs-deploy.yml
@@ -8,7 +8,7 @@ on:
- 'docs/**'
- 'mkdocs.yml'
- 'overrides/**'
- - '.github/workflows/mkdocs-deploy.yml'
+ - '.forgejo/workflows/mkdocs-deploy.yml'
workflow_dispatch:
permissions:
@@ -40,21 +40,18 @@ jobs:
- name: Build MkDocs site
run: mkdocs build --strict
- env:
- DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
- name: Deploy to target repository
env:
- TARGET_REPO: https://github.com/LinuxCabin/handbook-site
- TARGET_BRANCH: gh-pages
- DEPLOY_TOKEN: ${{ secrets.DEPLOY_KEY }}
- CUSTOM_DOMAIN: hb.linuxcabin.top
+ TARGET_REPO: https://codeberg.org/LinuxCabin/handbook-site
+ TARGET_BRANCH: pages
+ DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
cd site
- echo "${{ env.CUSTOM_DOMAIN }}" > CNAME
+ echo "hb.linuxcabin.top" > CNAME
git init
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
+ git config user.name "forgejo-actions[bot]"
+ git config user.email "forgejo-actions[bot]@users.noreply.github.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