Skip to content

Commit

Permalink
chore: Add release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Gasch <[email protected]>
  • Loading branch information
Michael Gasch committed Jan 5, 2022
1 parent 42ea4f3 commit 7f8e3f6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Create Release

on:
# release will only be created when ref is a tag starting with "v"
push:
tags:
- "v*"

jobs:
image:
name: Create Github release
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Check out code
uses: actions/checkout@v2

- name: Get short TAG
run: |
echo "TAG=$(basename "${{ github.ref }}")" >> $GITHUB_ENV
- name: Create Github Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${TAG} LICENSE README.md

0 comments on commit 7f8e3f6

Please sign in to comment.