-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v1.1.1 with updated dependencies and official Github release
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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 prometheus-filter-proxy README.md LICENSE prometheus-filter-proxy-${{ env.release_version }}-linux-amd64 && tar cvjf prometheus-filter-proxy-${{ env.release_version }}-linux-amd64.tar.bz2 prometheus-filter-proxy-${{ env.release_version }}-linux-amd64 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@8a65c813553f4d05769635eb1b70180d25b9b61b | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
prometheus-filter-proxy-${{ env.release_version }}-linux-amd64.tar.bz2 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0 | ||
1.1.1 |