Skip to content

Commit e96ac2d

Browse files
committed
Dry-run release workflow
1 parent a1f8cbf commit e96ac2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Release
33
on:
44
push:
55
tags: ["v*"]
6+
workflow_dispatch:
7+
inputs:
8+
dry-run:
9+
description: "Build and validate without publishing"
10+
type: boolean
11+
default: true
612

713
permissions:
814
contents: write
@@ -36,6 +42,7 @@ jobs:
3642

3743
release:
3844
name: Create Release
45+
if: ${{ !inputs.dry-run }}
3946
needs: build
4047
runs-on: ubuntu-latest
4148
steps:
@@ -53,6 +60,7 @@ jobs:
5360

5461
docker:
5562
name: Push Docker Image
63+
if: ${{ !inputs.dry-run }}
5664
needs: build
5765
runs-on: ubuntu-latest
5866
steps:

0 commit comments

Comments
 (0)