From 5987b3cafcb5b8d763294abc67a0dd14b0b03faf Mon Sep 17 00:00:00 2001 From: Neko Date: Sat, 5 Jul 2025 17:25:36 +0800 Subject: [PATCH] feat(ci): build only (#257) --- .github/workflows/release-tamagotchi.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tamagotchi.yml b/.github/workflows/release-tamagotchi.yml index 6f6ca3d58..08478b9fc 100644 --- a/.github/workflows/release-tamagotchi.yml +++ b/.github/workflows/release-tamagotchi.yml @@ -9,6 +9,11 @@ on: - prereleased workflow_dispatch: inputs: + build_only: + description: Build only without uploading to GitHub Releases + required: false + default: false + type: boolean tag: description: Attach to a specific tag/commit for the release (leave empty to auto-detect latest tag) required: false @@ -86,7 +91,7 @@ jobs: run: pnpm run -F @proj-airi/stage-tamagotchi rename-artifacts ${{ matrix.target }} - name: Rename Artifacts (Manual) - if: ${{ github.event_name == 'workflow_dispatch' }} + if: ${{ github.event_name == 'workflow_dispatch' && !github.event.inputs.build_only }} run: pnpm run -F @proj-airi/stage-tamagotchi rename-artifacts ${{ matrix.target }} --release --tag ${{ github.event.inputs.tag }} --auto-tag - name: Rename Artifacts (Automatic) @@ -101,7 +106,7 @@ jobs: path: bundle/${{ env.PRODUCT_NAME }}_* - name: Upload To GitHub Releases (Manual) - if: ${{ github.event_name == 'workflow_dispatch' }} + if: ${{ github.event_name == 'workflow_dispatch' && !github.event.inputs.build_only }} uses: softprops/action-gh-release@v2 with: files: bundle/${{ env.PRODUCT_NAME }}_*