Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Apr 24, 2024
1 parent 442c1cb commit 49c945b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Binary file removed .github/secrets/hcloud_cli.p12.gpg
Binary file not shown.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Decrypt Secrets
env:
SECRETS_PASSWORD: ${{ secrets.SECRETS_PASSWORD }}
- name: Extract Apple certificate
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$SECRETS_PASSWORD" \
--output .github/secrets/hcloud_cli.p12 .github/secrets/hcloud_cli.p12.gpg
echo "${{ secrets.APPLE_P12_FILE }}" | base64 -d > certificate.p12
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
Expand All @@ -46,7 +43,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_P12_PASSWORD: ${{ secrets.APPLE_P12_PASSWORD }}

- uses: actions/upload-artifact@v4
with:
name: Preview Binaries
path: dist/hcloud-*/hcloud
- name: Delete Apple certificate
if: always()
run: rm -f certificate.p12
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ builds:
post:
- cmd: >
rcodesign sign
--p12-file .github/secrets/hcloud_cli.p12
--p12-file certificate.p12
--p12-password "{{ .Env.APPLE_P12_PASSWORD }}"
--code-signature-flags runtime
"{{ .Path }}"
Expand Down

0 comments on commit 49c945b

Please sign in to comment.