Skip to content

Commit

Permalink
release v1.1.1 with updated dependencies and official Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffie committed Jan 7, 2022
1 parent 7a7091e commit 47f63b7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release-tag.yml
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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1

0 comments on commit 47f63b7

Please sign in to comment.