Skip to content

Commit

Permalink
CI: add release workflow using goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
benipeled authored and mmatczuk committed Apr 5, 2022
1 parent 9136698 commit 79107c2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- 'scylla-manager-**'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set go version
run: echo "GOVERSION=$(cat .go-version)" >> $GITHUB_ENV

- name: Set up go
uses: actions/setup-go@v2
with:
go-version: "${{env.GOVERSION}}"

- name: Release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
workdir: dist
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 79107c2

Please sign in to comment.