From ae568b7eff851e6a3543a3d0418d10719621ccc9 Mon Sep 17 00:00:00 2001 From: FangcatChina Date: Thu, 20 Aug 2026 21:23:56 +0800 Subject: fix: workflow rollback --- .forgejo/workflows/mkdocs-deploy.yml | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.forgejo/workflows/mkdocs-deploy.yml b/.forgejo/workflows/mkdocs-deploy.yml index 3f7365a..c742496 100644 --- a/.forgejo/workflows/mkdocs-deploy.yml +++ b/.forgejo/workflows/mkdocs-deploy.yml @@ -55,25 +55,25 @@ jobs: git add . git commit -m "Deploy site $(date -u '+%Y-%m-%d %H:%M:%S UTC')" git push --force "https://Fangcat_Dev:${DEPLOY_TOKEN}@codeberg.org/LinuxCabin/handbook-site.git" HEAD:pages - - name: Pre-treatment for reviewing - if: github.event_name == 'pull_request' - run: | - cd site + # - name: Pre-treatment for reviewing + # if: github.event_name == 'pull_request' + # run: | + # cd site - # 获取 PR 信息与构建时间 - PR_NUMBER="${{ github.event.pull_request.number }}" - PR_AUTHOR="${{ github.event.pull_request.user.login }}" - BUILD_TIME="$(date -u '+%Y-%m-%d %H:%M:%S UTC')" + # # 获取 PR 信息与构建时间 + # PR_NUMBER="${{ github.event.pull_request.number }}" + # PR_AUTHOR="${{ github.event.pull_request.user.login }}" + # BUILD_TIME="$(date -u '+%Y-%m-%d %H:%M:%S UTC')" - # 在 标签后插入横幅(保留原有属性) - sed -i "s/]*\)>/
Preview: PR #${PR_NUMBER} by ${PR_AUTHOR} | Built: ${BUILD_TIME}<\/div>/" index.html + # # 在 标签后插入横幅(保留原有属性) + # sed -i "s/]*\)>/
Preview: PR #${PR_NUMBER} by ${PR_AUTHOR} | Built: ${BUILD_TIME}<\/div>/" index.html - echo "preview.hb.linuxcabin.top" > CNAME - - name: Deploy to review - if: github.event_name == 'pull_request' - uses: https://codeberg.org/git-pages/action@v2 - with: - site: https://preview.hb.linuxcabin.top/ - server: codeberg.page - token: ${{ forge.token }} - source: site/ \ No newline at end of file + # echo "preview.hb.linuxcabin.top" > CNAME + # - name: Deploy to review + # if: github.event_name == 'pull_request' + # uses: https://codeberg.org/git-pages/action@v2 + # with: + # site: https://preview.hb.linuxcabin.top/ + # server: codeberg.page + # token: ${{ forge.token }} + # source: site/ \ No newline at end of file -- cgit v1.3