Skip to content

Commit

Permalink
release v1.0.2 with updated vendored dependencies and official Github…
Browse files Browse the repository at this point in the history
… releases
  • Loading branch information
hoffie committed Jan 7, 2022
1 parent ecb979c commit f71dda2
Showing 1 changed file with 37 additions and 0 deletions.
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 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

0 comments on commit f71dda2

Please sign in to comment.