This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree 3 files changed +37
-8
lines changed
3 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 7
7
steps :
8
8
- name : Checkout
9
9
uses : actions/checkout@v1
10
+ - name : Install Gon
11
+ run : |
12
+ brew tap mitchellh/gon
13
+ brew install mitchellh/gon/gon
14
+ - name : Import Signing Certificates
15
+ uses : Apple-Actions/import-codesign-certs@v1
16
+ with :
17
+ p12-file-base64 : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
18
+ p12-password : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
10
19
- name : Build
11
20
run : ./ci/steps/build.sh
12
21
- name : Upload
Original file line number Diff line number Diff line change
1
+ {
2
+ "source" : [" ./coder" ],
3
+ "bundle_id" : " com.coder.cli" ,
4
+ "sign" : {
5
+ "application_identity" : " 3C4F31D15F9D57461A8D7D0BD970D23CE1F7C2BE"
6
+ },
7
+ "zip" : {
8
+ "output_path" : " coder.zip"
9
+ }
10
+ }
Original file line number Diff line number Diff line change @@ -14,16 +14,26 @@ build() {
14
14
15
15
tmpdir=$( mktemp -d)
16
16
go build -ldflags " -X cdr.dev/coder-cli/internal/version.Version=${tag} " -o " $tmpdir /coder" ../../cmd/coder
17
+ # For MacOS builds to be notarized.
18
+ cp ../gon.json $tmpdir /gon.json
17
19
18
20
pushd " $tmpdir "
19
- if [[ " $GOOS " == " windows" ]]; then
20
- artifact=" coder-cli-$GOOS -$GOARCH .zip"
21
- mv coder coder.exe
22
- zip " $artifact " coder.exe
23
- else
24
- artifact=" coder-cli-$GOOS -$GOARCH .tar.gz"
25
- tar -czf " $artifact " coder
26
- fi
21
+ case " $GOOS " in
22
+ " windows" )
23
+ artifact=" coder-cli-$GOOS -$GOARCH .zip"
24
+ mv coder coder.exe
25
+ zip " $artifact " coder.exe
26
+ ;;
27
+ " linux" )
28
+ artifact=" coder-cli-$GOOS -$GOARCH .tar.gz"
29
+ tar -czf " $artifact " coder
30
+ ;;
31
+ " darwin" )
32
+ artifact=" coder-cli-$GOOS -$GOARCH .zip"
33
+ gon -log-level debug ./gon.json
34
+ mv coder.zip $artifact
35
+ ;;
36
+ esac
27
37
popd
28
38
29
39
mkdir -p ../bin
You can’t perform that action at this time.
0 commit comments