Skip to content

Commit

Permalink
run release only if build/test succeeds
Browse files Browse the repository at this point in the history
another goreleaser fix
  • Loading branch information
coopernetes committed Feb 21, 2023
1 parent ddda406 commit 52878b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ on:
push:
tags:
- "v*"
workflow_run:
workflows: [build/test]
types: [completed]
jobs:
goreleaser:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ before:
- go generate ./...
builds:
- main: ./cmd/kube-role-gen/
- env:
env:
- CGO_ENABLED=0
goos:
- linux
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build: $(TARGET)
test:
go test ./...

e2e: test
e2e:
tests/e2e_tests.sh

clean:
Expand Down

0 comments on commit 52878b9

Please sign in to comment.