From 4123f76de2986000f065c479b9c5497b4c7ca954 Mon Sep 17 00:00:00 2001 From: Michal Budzyn Date: Sun, 7 Jun 2020 21:17:21 +0200 Subject: [PATCH] Initial release --- .github/workflows/build.yaml | 14 ++++++++++++++ .goreleaser.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dbd56e3..3501200 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,6 +5,7 @@ on: branches: - master tags: + - '*' pull_request: branches: - master @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index eb1c0f1..a50bbe4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,5 +27,5 @@ release: github: owner: grepplabs name: mqtt-proxy - draft: true + draft: false prerelease: auto