feat(ci): build only (#257)

This commit is contained in:
Neko
2025-07-05 17:25:36 +08:00
committed by GitHub
parent fd314058b6
commit 5987b3cafc
+7 -2
View File
@@ -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 }}_*