Skip to content

Commit 7a00d1a

Browse files
committed
Add new release flow
1 parent 22946a9 commit 7a00d1a

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
goreleaser:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v1
12+
with:
13+
fetch-depth: 1
14+
- name: Setup Go
15+
uses: actions/setup-go@v1
16+
with:
17+
go-version: 1.12
18+
- name: Run GoReleaser
19+
uses: goreleaser/goreleaser-action@v1
20+
with:
21+
version: latest
22+
args: release --rm-dist
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.github_token }}

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import (
1717
const (
1818
// AppName is this tool name
1919
AppName = "iap_curl"
20+
2021
// Version is the version information of this tool
21-
Version = "0.1.3"
22+
Version = "unset"
2223
)
2324

2425
const help = `iap_curl - curl wrapper for making HTTP request to IAP-protected app

0 commit comments

Comments
 (0)