Skip to content

Commit b171275

Browse files
committed
Generate automatic draft release
We needed a way to generate draft releases for git-sizer binaries. This commit adds a new `.github/workflows/release.yml` github action that will generate a draft release when a new tag version is pushed. the action will be triggered After the tag is created and pushed using: ``` git tag -as v$VERSION git push origin v$VERSION ```
1 parent 9640559 commit b171275

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
lint:
13+
name: Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Setup
17+
uses:
18+
actions/setup-go@v4
19+
with:
20+
go-version: 1.21
21+
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Build releases
26+
run: |
27+
make releases VERSION=$GITHUB_REF_NAME
28+
29+
- name: Release
30+
uses: softprops/action-gh-release@v1
31+
with:
32+
draft: true
33+
files: |
34+
releases/git-sizer-*

0 commit comments

Comments
 (0)