-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v1.0.2 with updated vendored dependencies and official Github…
… releases
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release Tag | ||
|
||
on: | ||
push: | ||
tags: v* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set Variables | ||
run: echo "release_version=${GITHUB_REF_NAME/v/}" >> $GITHUB_ENV | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Build | ||
run: go build -v | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
|
||
- name: Package Binary | ||
run: rsync multilog_exporter README.md LICENSE multilog_exporter-${{ env.release_version }}-linux-amd64 && tar cvjf multilog_exporter-${{ env.release_version }}-linux-amd64.tar.bz2 multilog_exporter-${{ env.release_version }}-linux-amd64 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@8a65c813553f4d05769635eb1b70180d25b9b61b | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
multilog_exporter-${{ env.release_version }}-linux-amd64.tar.bz2 |