Skip to content

Commit

Permalink
Moved release-prep task into goreleaser before hook
Browse files Browse the repository at this point in the history
Signed-off-by: Corbin Phelps <[email protected]>
  • Loading branch information
Corbin Phelps committed Mar 8, 2022
1 parent 1e311ab commit 52b9035
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ jobs:
shell: bash
env:
COSIGN_PRIVATE_KEY: ${{secrets.ORG_COSIGN_PRIVATE_KEY}}
# Prep dependencies needed release archiving
- name: Preparing Release Dependencies
run: make release-prep
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
before:
hooks:
- make release-prep

# https://goreleaser.com/customization/build/
builds:
- id: collector
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ release-prep:

# Build, sign, and release
.PHONY: release
release: release-prep
release:
goreleaser release --parallelism 4 --rm-dist

# Build and sign, skip release and ignore dirty git tree
.PHONY: release-test
release-test: release-prep
release-test:
goreleaser release --parallelism 4 --skip-validate --skip-publish --skip-sign --rm-dist

.PHONY: for-all
Expand Down

0 comments on commit 52b9035

Please sign in to comment.