Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Add signing
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats committed Feb 8, 2021
1 parent b7651c9 commit 9ab88f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- name: release dry run
run: make release-dry-run
- name: setup release environment
run: echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
run: |
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
echo 'PRIVATE_KEY=${{secrets.PRIVATE_KEY}}' >> .release-env
- name: release publish
run: make release
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ changelog:
exclude:
- '^docs:'
- '^test:'
signs:
- artifacts: checksum
args:
- "--batch"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ release-dry-run:
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/cloudquery/golang-cross:latest \
--rm-dist --skip-validate --skip-publish
--rm-dist --skip-validate --skip-publish --skip-sign

.PHONY: release
release:
Expand Down

0 comments on commit 9ab88f9

Please sign in to comment.