-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Release-please | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
name: release-please | ||
branches: [main] | ||
|
||
jobs: | ||
release-please: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,7 @@ builds: | |
- arm64 | ||
hooks: | ||
post: | ||
- env: | ||
- GON_SOURCE={{ .Path }} | ||
cmd: gon -log-level=debug gon.hcl | ||
- cmd: bash script/gon.sh "{{ .Path }}" | ||
output: true | ||
|
||
checksum: | ||
|
@@ -53,12 +51,12 @@ signs: | |
ids: | ||
- hcloud-build | ||
- hcloud-build-darwin | ||
args: | ||
- --batch | ||
- [email protected] | ||
- --pinentry-mode=loopback | ||
- --output=${signature} | ||
- --detach-sign=${artifact} | ||
args: | ||
- --batch | ||
- [email protected] | ||
- --pinentry-mode=loopback | ||
- --output=${signature} | ||
- --detach-sign=${artifact} | ||
|
||
archives: | ||
- id: hcloud-archive | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
# Only sign on releasing | ||
if [[ "${GITHUB_REF_TYPE:-}" != "tag" ]]; then | ||
exit 0 | ||
fi | ||
|
||
BINARY_PATH="$1" | ||
|
||
GON_CONFIG=$(mktemp gon_XXXX.json) | ||
cleanup() { | ||
rm -f "$GON_CONFIG" | ||
} | ||
trap cleanup EXIT | ||
|
||
printf '{ | ||
"source": ["%s"], | ||
"bundle_id": "cloud.hetzner.cli", | ||
"apple_id": { | ||
"username": "[email protected]", | ||
"password": "@env:HC_APPLE_DEVELOPER_PASSWORD" | ||
}, | ||
"sign": { | ||
"application_identity": "Developer ID Application: Hetzner Cloud GmbH (4PM38G6W5R)" | ||
} | ||
}' "$BINARY_PATH" > "$GON_CONFIG" | ||
|
||
gon -log-level=debug "$GON_CONFIG" |