feat: Sign MacOS binaries (#1060)

This fixes virus warnings when launching Coder on darwin.
This commit is contained in:
Kyle Carberry
2022-04-18 14:57:41 -05:00
committed by GitHub
parent a5f36ad4e2
commit 866205c145
4 changed files with 91 additions and 15 deletions
+14 -1
View File
@@ -5,7 +5,7 @@ on:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
@@ -14,6 +14,17 @@ jobs:
with:
go-version: "~1.18"
- name: Install Gon
run: |
brew tap mitchellh/gon
brew install mitchellh/gon/gon
- name: Import Signing Certificates
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.AC_CERTIFICATE_P12_BASE64 }}
p12-password: ${{ secrets.AC_CERTIFICATE_PASSWORD }}
- name: Echo Go Cache Paths
id: go-cache-paths
run: |
@@ -53,3 +64,5 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AC_USERNAME: ${{ secrets.AC_USERNAME }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}