Skip to content

Commit

Permalink
releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
nopg committed Mar 23, 2023
1 parent f8a79d8 commit 7c20e46
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CICD-Workflow

on:
push:
branches:
- main
tags:
- "v*"
env:
GOVER: 1.19.x
CGO_ENABLED: 0

jobs:
build-and-release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GOVER }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7c20e46

Please sign in to comment.