From 82d2736cea4ab3a4cdd8fa5c43f09c3666dcf1ff Mon Sep 17 00:00:00 2001 From: Jasery Date: Wed, 19 Nov 2025 10:04:06 +0800 Subject: [PATCH] ci(publish): Disable release workflow steps for testing - Change trigger branch from main to action-test for testing purposes - Comment out Configure Git step to simplify workflow execution - Disable Setup Git user configuration step - Disable Bump version and generate changelog step - Disable Push changes and git tag steps - Disable Upload Release Assets step - Temporarily disable release automation to test build process independently --- .gitea/workflows/publish.yml | 60 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 317ef07..1c86e38 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish Release on: push: branches: - - main + - action-test # 在同一个工作流中处理发布任务 concurrency: @@ -24,9 +24,9 @@ jobs: with: node-version: '20' - - name: Configure Git - run: | - git config --global url."https://".insteadOf git:// + # - name: Configure Git + # run: | + # git config --global url."https://".insteadOf git:// - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -41,27 +41,27 @@ jobs: env: NPM_CONFIG_LEGACY_PEER_DEPS: true - - name: Setup Git user - run: | - git config --global user.name 'gitea-actions[bot]' - git config --global user.email 'gitea-actions[bot]@users.noreply.gitea.com' + # - name: Setup Git user + # run: | + # git config --global user.name 'gitea-actions[bot]' + # git config --global user.email 'gitea-actions[bot]@users.noreply.gitea.com' - - name: Bump version and generate changelog - shell: bash - run: | - # 根据 commit 信息自动更新版本和生成 changelog - pnpm release + # - name: Bump version and generate changelog + # shell: bash + # run: | + # # 根据 commit 信息自动更新版本和生成 changelog + # pnpm release - # 获取新版本号 - version=$(node -p "require('./package.json').version") - echo "VERSION=$version" >> $GITHUB_ENV - echo "Version set to: $version" + # # 获取新版本号 + # version=$(node -p "require('./package.json').version") + # echo "VERSION=$version" >> $GITHUB_ENV + # echo "Version set to: $version" - - name: Push changes - run: | - git push origin main - git tag "v${{ env.VERSION }}" - git push origin "v${{ env.VERSION }}" + # - name: Push changes + # run: | + # git push origin main + # git tag "v${{ env.VERSION }}" + # git push origin "v${{ env.VERSION }}" - name: Build for Windows run: | @@ -70,11 +70,11 @@ jobs: # 禁用 Windows 代码签名 WIN_CSC_KEY_PASSWORD: '' - - name: Upload Release Assets - uses: https://gitea.com/actions/release-action@main - with: - files: | - release/**/*.exe - release/**/*.exe.blockmap - release/**/latest.yml - release/**/app-update.yml + # - name: Upload Release Assets + # uses: https://gitea.com/actions/release-action@main + # with: + # files: | + # release/**/*.exe + # release/**/*.exe.blockmap + # release/**/latest.yml + # release/**/app-update.yml