Skip to content

Commit 326a9f9

Browse files
committed
chore(ci): add skip release opt
1 parent 9e109ac commit 326a9f9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build Millennium
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
skip_release:
7+
description: 'Build artifacts without creating a GitHub release or signing'
8+
type: boolean
9+
default: false
510
push:
611
branches:
712
- main
@@ -72,6 +77,7 @@ jobs:
7277

7378
- name: Sign Installer Build
7479
id: sign_artifact
80+
if: ${{ !inputs.skip_release }}
7581
uses: signpath/github-action-submit-signing-request@v1.1
7682
with:
7783
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
@@ -85,6 +91,7 @@ jobs:
8591

8692
- name: Upload Signed Build Release
8793
id: upload-signed-artifact
94+
if: ${{ !inputs.skip_release }}
8895
uses: actions/upload-artifact@v4
8996
with:
9097
include-hidden-files: true
@@ -102,6 +109,7 @@ jobs:
102109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103110

104111
- name: Create GitHub Release
112+
if: ${{ !inputs.skip_release }}
105113
run: cd resources/versioning && npx semantic-release
106114
env:
107115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)