Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
everesio committed Jun 7, 2020
1 parent 2e4b418 commit 4123f76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
Expand Down Expand Up @@ -32,3 +33,16 @@ jobs:
tag_with_ref: true
always_pull: true
add_git_labels: true
- name: Set goreleaser env varbiales
run: |
echo "::set-env name=REVISION::$(git describe --tags --always --dirty)"
echo "::set-env name=BRANCH::$(git rev-parse --abbrev-ref HEAD)"
echo "::set-env name=BUILD_DATE::$(date +'%Y.%m.%d-%H:%M:%S')"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ release:
github:
owner: grepplabs
name: mqtt-proxy
draft: true
draft: false
prerelease: auto

0 comments on commit 4123f76

Please sign in to comment.