Skip to content

Commit 4975f3f

Browse files
authored
Merge pull request #244 from glours/release-workflow
improve the way we release a new version of compose-go library
2 parents 32e1258 + a913c3d commit 4975f3f

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
name: Release
22
on:
3-
push:
4-
tags:
5-
- "v1*"
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: "Branch"
7+
required: true
8+
default: "master"
9+
tag:
10+
description: "Release Tag"
11+
12+
613

714
jobs:
815
release:
916
runs-on: ubuntu-latest
1017
steps:
11-
- uses: ncipollo/release-action@v1
18+
- name: Release it!
19+
if: ${{ github.event.inputs.tag != '' }} # don't release if no tag is specified
20+
uses: ncipollo/release-action@v1
1221
with:
13-
token: ${{ secrets.GITHUB_TOKEN }}
22+
generateReleaseNotes: true
23+
draft: true
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
tag: ${{ github.event.inputs.tag }}
26+
commit: ${{ github.event.inputs.branch }}

0 commit comments

Comments
 (0)