Skip to content

Commit 4123f76

Browse files
committed
Initial release
1 parent 2e4b418 commit 4123f76

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
tags:
8+
- '*'
89
pull_request:
910
branches:
1011
- master
@@ -32,3 +33,16 @@ jobs:
3233
tag_with_ref: true
3334
always_pull: true
3435
add_git_labels: true
36+
- name: Set goreleaser env varbiales
37+
run: |
38+
echo "::set-env name=REVISION::$(git describe --tags --always --dirty)"
39+
echo "::set-env name=BRANCH::$(git rev-parse --abbrev-ref HEAD)"
40+
echo "::set-env name=BUILD_DATE::$(date +'%Y.%m.%d-%H:%M:%S')"
41+
- name: Run GoReleaser
42+
uses: goreleaser/goreleaser-action@v2
43+
if: startsWith(github.ref, 'refs/tags/')
44+
with:
45+
version: latest
46+
args: release --rm-dist
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ release:
2727
github:
2828
owner: grepplabs
2929
name: mqtt-proxy
30-
draft: true
30+
draft: false
3131
prerelease: auto

0 commit comments

Comments
 (0)