Skip to content

Commit 2eb724c

Browse files
authored
fix: set canary release on demand (#128)
1 parent 3cbcf4c commit 2eb724c

File tree

4 files changed

+25
-48
lines changed

4 files changed

+25
-48
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
verify:
13+
name: Verify
14+
uses: ./.github/workflows/verify.yml
15+
secrets: inherit

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
push:
88
branches:
99
- main
10+
workflow_dispatch:
11+
inputs:
12+
run-verify:
13+
type: boolean
14+
description: 'Run verification after release'
15+
required: false
16+
default: false
1017

1118
concurrency: ${{ github.workflow }}-${{ github.ref }}
1219

@@ -32,7 +39,7 @@ jobs:
3239

3340
verify:
3441
needs: release
35-
if: ${{ needs.release.outputs.pullRequestNumber != '' }}
42+
if: ${{ inputs.run-verify && needs.release.outputs.pullRequestNumber != '' }}
3643
uses: ./.github/workflows/verify.yml
3744
secrets: inherit
3845
with:

.github/workflows/verify.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Verify'
1+
name: Verify
22
on:
33
workflow_call:
44
inputs:
@@ -44,7 +44,7 @@ jobs:
4444

4545
steps:
4646
- uses: actions/checkout@v4
47-
47+
4848
- name: Setup Repository
4949
uses: ./.github/actions/setup
5050

@@ -64,6 +64,3 @@ jobs:
6464
if: ${{ inputs.run-acceptance }}
6565
shell: bash
6666
run: pnpm spec
67-
68-
69-

0 commit comments

Comments
 (0)