|
63 | 63 | binary_artifacts: |
64 | 64 | path: .build/$BUILD_ARCH-apple-macosx/debug/tart |
65 | 65 |
|
66 | | -task: |
67 | | - only_if: $CIRRUS_TAG == '' && ($CIRRUS_USER_PERMISSION == 'write' || $CIRRUS_USER_PERMISSION == 'admin') |
68 | | - name: Release (Dry Run) |
69 | | - depends_on: |
70 | | - - lint |
71 | | - - build |
72 | | - macos_instance: |
73 | | - image: ghcr.io/cirruslabs/macos-runner:tahoe |
74 | | - env: |
75 | | - MACOS_CERTIFICATE: ENCRYPTED[552b9d275d1c2bdbc1bff778b104a8f9a53cbd0d59344d4b7f6d0ca3c811a5cefb97bef9ba0ef31c219cb07bdacdd2c2] |
76 | | - AC_PASSWORD: ENCRYPTED[4a761023e7e06fe2eb350c8b6e8e7ca961af193cb9ba47605f25f1d353abc3142606f412e405be48fd897a78787ea8c2] |
77 | | - GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!] |
78 | | - GORELEASER_KEY: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!] |
79 | | - setup_script: |
80 | | - - cd $HOME |
81 | | - - echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 |
82 | | - - security create-keychain -p password101 build.keychain |
83 | | - - security default-keychain -s build.keychain |
84 | | - - security unlock-keychain -p password101 build.keychain |
85 | | - - security import certificate.p12 -k build.keychain -P password101 -T /usr/bin/codesign -T /usr/bin/pkgbuild |
86 | | - - security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password101 build.keychain |
87 | | - - xcrun notarytool store-credentials "notarytool" --apple-id "hello@cirruslabs.org" --team-id "9M2P8L4D89" --password $AC_PASSWORD |
88 | | - install_script: |
89 | | - - brew install go |
90 | | - - brew install mitchellh/gon/gon |
91 | | - - brew install --cask goreleaser/tap/goreleaser-pro |
92 | | - info_script: |
93 | | - - security find-identity -v |
94 | | - - xcodebuild -version |
95 | | - - swift -version |
96 | | - goreleaser_script: goreleaser release --skip=publish --snapshot --clean |
97 | | - always: |
98 | | - dist_artifacts: |
99 | | - path: "dist/*" |
100 | | - |
101 | | -task: |
102 | | - name: Release |
103 | | - only_if: $CIRRUS_TAG != '' |
104 | | - depends_on: |
105 | | - - lint |
106 | | - - build |
107 | | - macos_instance: |
108 | | - image: ghcr.io/cirruslabs/macos-runner:tahoe |
109 | | - env: |
110 | | - MACOS_CERTIFICATE: ENCRYPTED[552b9d275d1c2bdbc1bff778b104a8f9a53cbd0d59344d4b7f6d0ca3c811a5cefb97bef9ba0ef31c219cb07bdacdd2c2] |
111 | | - AC_PASSWORD: ENCRYPTED[4a761023e7e06fe2eb350c8b6e8e7ca961af193cb9ba47605f25f1d353abc3142606f412e405be48fd897a78787ea8c2] |
112 | | - GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!] |
113 | | - GORELEASER_KEY: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!] |
114 | | - SENTRY_ORG: cirrus-labs |
115 | | - SENTRY_PROJECT: persistent-workers |
116 | | - SENTRY_AUTH_TOKEN: ENCRYPTED[!9eaf2875d51b113e2f68598441ff8e6b2e53242e48fcb93633bd75a373fbe2e7caa900d837cc92f0b142b65579731644!] |
117 | | - setup_script: |
118 | | - - cd $HOME |
119 | | - - echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 |
120 | | - - security create-keychain -p password101 build.keychain |
121 | | - - security default-keychain -s build.keychain |
122 | | - - security unlock-keychain -p password101 build.keychain |
123 | | - - security import certificate.p12 -k build.keychain -P password101 -T /usr/bin/codesign -T /usr/bin/pkgbuild |
124 | | - - security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password101 build.keychain |
125 | | - - xcrun notarytool store-credentials "notarytool" --apple-id "hello@cirruslabs.org" --team-id "9M2P8L4D89" --password $AC_PASSWORD |
126 | | - install_script: |
127 | | - - brew install go getsentry/tools/sentry-cli |
128 | | - - brew install mitchellh/gon/gon |
129 | | - - brew install --cask goreleaser/tap/goreleaser-pro |
130 | | - info_script: |
131 | | - - security find-identity -v |
132 | | - - xcodebuild -version |
133 | | - - swift -version |
134 | | - release_script: goreleaser |
135 | | - upload_sentry_debug_files_script: |
136 | | - - cd .build/arm64-apple-macosx/release/ |
137 | | - # Generate and upload symbols |
138 | | - - dsymutil tart |
139 | | - - sentry-cli debug-files upload tart.dSYM/ |
140 | | - - SENTRY_PROJECT=tart sentry-cli debug-files upload tart.dSYM/ |
141 | | - # Bundle and upload sources |
142 | | - - sentry-cli debug-files bundle-sources tart.dSYM |
143 | | - - sentry-cli debug-files upload tart.src.zip |
144 | | - - SENTRY_PROJECT=tart sentry-cli debug-files upload tart.src.zip |
145 | | - create_sentry_release_script: |
146 | | - - export SENTRY_RELEASE="tart@$CIRRUS_TAG" |
147 | | - - sentry-cli releases new $SENTRY_RELEASE |
148 | | - - sentry-cli releases set-commits $SENTRY_RELEASE --auto |
149 | | - - sentry-cli releases finalize $SENTRY_RELEASE |
150 | | - |
151 | 66 | task: |
152 | 67 | name: Deploy Documentation |
153 | 68 | only_if: $CIRRUS_BRANCH == 'main' |
|
0 commit comments