Skip to content

Commit

Permalink
[UPDATEC] releaser build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas-ggd committed Aug 27, 2024
1 parent b5a8118 commit 5ab8528
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: GO

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*'

jobs:
build:
Expand All @@ -20,9 +19,12 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build
- name: Run Tests
run: go test ./...

goreleaser:
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,5 +42,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
CGO_ENABLED: 0

0 comments on commit 5ab8528

Please sign in to comment.