1
0

publish.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. name: publish
  2. run-name: "${{ format('release {0}', inputs.bump) }}"
  3. on:
  4. push:
  5. branches:
  6. - ci
  7. - dev
  8. - beta
  9. - fix/npm-native-binary-install
  10. - snapshot-*
  11. workflow_dispatch:
  12. inputs:
  13. bump:
  14. description: "Bump major, minor, or patch"
  15. required: false
  16. type: choice
  17. options:
  18. - major
  19. - minor
  20. - patch
  21. version:
  22. description: "Override version (optional)"
  23. required: false
  24. type: string
  25. concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.version || inputs.bump }}
  26. permissions:
  27. id-token: write
  28. contents: write
  29. packages: write
  30. jobs:
  31. version:
  32. runs-on: blacksmith-4vcpu-ubuntu-2404
  33. if: github.repository == 'anomalyco/opencode'
  34. steps:
  35. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
  36. with:
  37. fetch-depth: 0
  38. - uses: ./.github/actions/setup-bun
  39. - name: Setup git committer
  40. id: committer
  41. uses: ./.github/actions/setup-git-committer
  42. with:
  43. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  44. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  45. - name: Install OpenCode
  46. if: inputs.bump || inputs.version
  47. run: bun i -g opencode-ai
  48. - id: version
  49. run: |
  50. ./script/version.ts
  51. env:
  52. GH_TOKEN: ${{ steps.committer.outputs.token }}
  53. OPENCODE_BUMP: ${{ inputs.bump }}
  54. OPENCODE_VERSION: ${{ inputs.version }}
  55. OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
  56. GH_REPO: ${{ (github.ref_name == 'beta' && 'anomalyco/opencode-beta') || github.repository }}
  57. outputs:
  58. version: ${{ steps.version.outputs.version }}
  59. release: ${{ steps.version.outputs.release }}
  60. tag: ${{ steps.version.outputs.tag }}
  61. repo: ${{ steps.version.outputs.repo }}
  62. build-cli:
  63. needs: version
  64. runs-on: blacksmith-4vcpu-ubuntu-2404
  65. if: github.repository == 'anomalyco/opencode'
  66. steps:
  67. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
  68. with:
  69. fetch-tags: true
  70. - uses: ./.github/actions/setup-bun
  71. - name: Setup git committer
  72. id: committer
  73. uses: ./.github/actions/setup-git-committer
  74. with:
  75. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  76. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  77. - name: Build
  78. id: build
  79. run: |
  80. ./packages/opencode/script/build.ts ${{ (github.ref_name == 'beta' && '--sourcemaps') || '' }}
  81. env:
  82. OPENCODE_VERSION: ${{ needs.version.outputs.version }}
  83. OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
  84. GH_REPO: ${{ needs.version.outputs.repo }}
  85. GH_TOKEN: ${{ steps.committer.outputs.token }}
  86. - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
  87. with:
  88. name: opencode-cli
  89. path: |
  90. packages/opencode/dist/opencode-darwin*
  91. packages/opencode/dist/opencode-linux*
  92. - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
  93. with:
  94. name: opencode-cli-windows
  95. path: packages/opencode/dist/opencode-windows*
  96. outputs:
  97. version: ${{ needs.version.outputs.version }}
  98. sign-cli-windows:
  99. needs:
  100. - build-cli
  101. - version
  102. runs-on: blacksmith-4vcpu-windows-2025
  103. if: github.repository == 'anomalyco/opencode'
  104. env:
  105. AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
  106. AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
  107. AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
  108. AZURE_TRUSTED_SIGNING_ACCOUNT_NAME: ${{ secrets.AZURE_TRUSTED_SIGNING_ACCOUNT_NAME }}
  109. AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE: ${{ secrets.AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE }}
  110. AZURE_TRUSTED_SIGNING_ENDPOINT: ${{ secrets.AZURE_TRUSTED_SIGNING_ENDPOINT }}
  111. steps:
  112. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
  113. - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  114. with:
  115. name: opencode-cli-windows
  116. path: packages/opencode/dist
  117. - name: Setup git committer
  118. id: committer
  119. uses: ./.github/actions/setup-git-committer
  120. with:
  121. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  122. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  123. - name: Azure login
  124. uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
  125. with:
  126. client-id: ${{ env.AZURE_CLIENT_ID }}
  127. tenant-id: ${{ env.AZURE_TENANT_ID }}
  128. subscription-id: ${{ env.AZURE_SUBSCRIPTION_ID }}
  129. - uses: azure/artifact-signing-action@b443cf8ea4124818d2ea9f043cba29fc3ec47b16 # v1.2.0
  130. with:
  131. endpoint: ${{ env.AZURE_TRUSTED_SIGNING_ENDPOINT }}
  132. signing-account-name: ${{ env.AZURE_TRUSTED_SIGNING_ACCOUNT_NAME }}
  133. certificate-profile-name: ${{ env.AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE }}
  134. files: |
  135. ${{ github.workspace }}\packages\opencode\dist\opencode-windows-arm64\bin\opencode.exe
  136. ${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64\bin\opencode.exe
  137. ${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64-baseline\bin\opencode.exe
  138. exclude-environment-credential: true
  139. exclude-workload-identity-credential: true
  140. exclude-managed-identity-credential: true
  141. exclude-shared-token-cache-credential: true
  142. exclude-visual-studio-credential: true
  143. exclude-visual-studio-code-credential: true
  144. exclude-azure-cli-credential: false
  145. exclude-azure-powershell-credential: true
  146. exclude-azure-developer-cli-credential: true
  147. exclude-interactive-browser-credential: true
  148. - name: Verify Windows CLI signatures
  149. shell: pwsh
  150. run: |
  151. $files = @(
  152. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-arm64\bin\opencode.exe",
  153. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64\bin\opencode.exe",
  154. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64-baseline\bin\opencode.exe"
  155. )
  156. foreach ($file in $files) {
  157. $sig = Get-AuthenticodeSignature $file
  158. if ($sig.Status -ne "Valid") {
  159. throw "Invalid signature for ${file}: $($sig.Status)"
  160. }
  161. }
  162. - name: Repack Windows CLI archives
  163. working-directory: packages/opencode/dist
  164. shell: pwsh
  165. run: |
  166. Compress-Archive -Path "opencode-windows-arm64\bin\*" -DestinationPath "opencode-windows-arm64.zip" -Force
  167. Compress-Archive -Path "opencode-windows-x64\bin\*" -DestinationPath "opencode-windows-x64.zip" -Force
  168. Compress-Archive -Path "opencode-windows-x64-baseline\bin\*" -DestinationPath "opencode-windows-x64-baseline.zip" -Force
  169. - name: Upload signed Windows CLI release assets
  170. if: needs.version.outputs.release != ''
  171. shell: pwsh
  172. env:
  173. GH_TOKEN: ${{ steps.committer.outputs.token }}
  174. run: |
  175. gh release upload "v${{ needs.version.outputs.version }}" `
  176. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-arm64.zip" `
  177. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64.zip" `
  178. "${{ github.workspace }}\packages\opencode\dist\opencode-windows-x64-baseline.zip" `
  179. --clobber `
  180. --repo "${{ needs.version.outputs.repo }}"
  181. - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
  182. with:
  183. name: opencode-cli-signed-windows
  184. path: |
  185. packages/opencode/dist/opencode-windows-arm64
  186. packages/opencode/dist/opencode-windows-x64
  187. packages/opencode/dist/opencode-windows-x64-baseline
  188. build-electron:
  189. needs:
  190. - build-cli
  191. - version
  192. if: github.repository == 'anomalyco/opencode'
  193. continue-on-error: false
  194. env:
  195. AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
  196. AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
  197. AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
  198. AZURE_TRUSTED_SIGNING_ACCOUNT_NAME: ${{ secrets.AZURE_TRUSTED_SIGNING_ACCOUNT_NAME }}
  199. AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE: ${{ secrets.AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE }}
  200. AZURE_TRUSTED_SIGNING_ENDPOINT: ${{ secrets.AZURE_TRUSTED_SIGNING_ENDPOINT }}
  201. strategy:
  202. fail-fast: false
  203. matrix:
  204. settings:
  205. - host: macos-26-intel
  206. target: x86_64-apple-darwin
  207. platform_flag: --mac --x64
  208. bun_install_flags: --os=darwin --cpu=x64
  209. - host: macos-26
  210. target: aarch64-apple-darwin
  211. platform_flag: --mac --arm64
  212. bun_install_flags: --os=darwin --cpu=arm64
  213. # github-hosted: blacksmith lacks ARM64 MSVC cross-compilation toolchain
  214. - host: "windows-2025"
  215. target: aarch64-pc-windows-msvc
  216. platform_flag: --win --arm64
  217. - host: "blacksmith-4vcpu-windows-2025"
  218. target: x86_64-pc-windows-msvc
  219. platform_flag: --win
  220. - host: "blacksmith-4vcpu-ubuntu-2404"
  221. target: x86_64-unknown-linux-gnu
  222. platform_flag: --linux
  223. - host: "blacksmith-4vcpu-ubuntu-2404-arm"
  224. target: aarch64-unknown-linux-gnu
  225. platform_flag: --linux --arm64
  226. runs-on: ${{ matrix.settings.host }}
  227. steps:
  228. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
  229. - uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2.0.0
  230. if: runner.os == 'macOS'
  231. with:
  232. keychain: build
  233. p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
  234. p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
  235. - name: Setup Apple API Key
  236. if: runner.os == 'macOS'
  237. run: echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8
  238. - uses: ./.github/actions/setup-bun
  239. with:
  240. install-flags: ${{ matrix.settings.bun_install_flags }}
  241. - name: Azure login
  242. if: runner.os == 'Windows'
  243. uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
  244. with:
  245. client-id: ${{ env.AZURE_CLIENT_ID }}
  246. tenant-id: ${{ env.AZURE_TENANT_ID }}
  247. subscription-id: ${{ env.AZURE_SUBSCRIPTION_ID }}
  248. - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
  249. with:
  250. node-version: "24"
  251. - name: Cache apt packages
  252. if: contains(matrix.settings.host, 'ubuntu')
  253. uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
  254. with:
  255. path: ~/apt-cache
  256. key: ${{ runner.os }}-${{ matrix.settings.target }}-apt-electron-${{ hashFiles('.github/workflows/publish.yml') }}
  257. restore-keys: |
  258. ${{ runner.os }}-${{ matrix.settings.target }}-apt-electron-
  259. - name: Install dependencies (ubuntu only)
  260. if: contains(matrix.settings.host, 'ubuntu')
  261. run: |
  262. mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache
  263. sudo apt-get update
  264. sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" rpm
  265. sudo chmod -R a+rw ~/apt-cache
  266. - name: Setup git committer
  267. id: committer
  268. uses: ./.github/actions/setup-git-committer
  269. with:
  270. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  271. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  272. - name: Prepare
  273. run: bun ./scripts/prepare.ts
  274. working-directory: packages/desktop
  275. env:
  276. OPENCODE_VERSION: ${{ needs.version.outputs.version }}
  277. OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }}
  278. OPENCODE_CLI_ARTIFACT: ${{ (runner.os == 'Windows' && 'opencode-cli-windows') || 'opencode-cli' }}
  279. RUST_TARGET: ${{ matrix.settings.target }}
  280. GH_TOKEN: ${{ github.token }}
  281. GITHUB_RUN_ID: ${{ github.run_id }}
  282. - name: Build
  283. run: bun run build
  284. working-directory: packages/desktop
  285. env:
  286. OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }}
  287. SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
  288. SENTRY_ORG: ${{ vars.SENTRY_ORG }}
  289. SENTRY_PROJECT: ${{ vars.WEB_SENTRY_PROJECT }}
  290. SENTRY_RELEASE: desktop@${{ needs.version.outputs.version }}
  291. VITE_SENTRY_DSN: ${{ vars.WEB_SENTRY_DSN }}
  292. VITE_SENTRY_ENVIRONMENT: ${{ (github.ref_name == 'beta' && 'beta') || 'production' }}
  293. VITE_SENTRY_RELEASE: desktop@${{ needs.version.outputs.version }}
  294. - name: Package and publish
  295. if: needs.version.outputs.release
  296. run: npx electron-builder ${{ matrix.settings.platform_flag }} --publish always --config electron-builder.config.ts
  297. working-directory: packages/desktop
  298. timeout-minutes: 60
  299. env:
  300. OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }}
  301. GH_TOKEN: ${{ steps.committer.outputs.token }}
  302. CSC_LINK: ${{ secrets.APPLE_CERTIFICATE }}
  303. CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
  304. APPLE_API_KEY: ${{ runner.temp }}/apple-api-key.p8
  305. APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY }}
  306. APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
  307. - name: Package (no publish)
  308. if: ${{ !needs.version.outputs.release }}
  309. run: npx electron-builder ${{ matrix.settings.platform_flag }} --publish never --config electron-builder.config.ts
  310. working-directory: packages/desktop
  311. timeout-minutes: 60
  312. env:
  313. OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }}
  314. - name: Create and upload macOS .app.tar.gz
  315. if: runner.os == 'macOS' && needs.version.outputs.release
  316. working-directory: packages/desktop/dist
  317. env:
  318. GH_TOKEN: ${{ steps.committer.outputs.token }}
  319. run: |
  320. if [[ "${{ matrix.settings.target }}" == "x86_64-apple-darwin" ]]; then
  321. APP_DIR="mac"
  322. OUT_NAME="opencode-desktop-mac-x64.app.tar.gz"
  323. elif [[ "${{ matrix.settings.target }}" == "aarch64-apple-darwin" ]]; then
  324. APP_DIR="mac-arm64"
  325. OUT_NAME="opencode-desktop-mac-arm64.app.tar.gz"
  326. else
  327. echo "Unknown macOS target: ${{ matrix.settings.target }}"
  328. exit 1
  329. fi
  330. APP_PATH=$(find "$APP_DIR" -maxdepth 1 -name "*.app" -type d | head -1)
  331. if [ -z "$APP_PATH" ]; then
  332. echo "No .app bundle found in $APP_DIR"
  333. exit 1
  334. fi
  335. tar -czf "$OUT_NAME" -C "$(dirname "$APP_PATH")" "$(basename "$APP_PATH")"
  336. gh release upload "v${{ needs.version.outputs.version }}" "$OUT_NAME" --clobber --repo "${{ needs.version.outputs.repo }}"
  337. - name: Verify signed Windows Electron artifacts
  338. if: runner.os == 'Windows'
  339. shell: pwsh
  340. run: |
  341. $files = @()
  342. $files += Get-ChildItem "${{ github.workspace }}\packages\desktop\dist\*.exe" | Select-Object -ExpandProperty FullName
  343. $files += Get-ChildItem "${{ github.workspace }}\packages\desktop\dist\*unpacked\*.exe" | Select-Object -ExpandProperty FullName
  344. $files += Get-ChildItem "${{ github.workspace }}\packages\desktop\dist\*unpacked\resources\opencode-cli.exe" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
  345. foreach ($file in $files | Select-Object -Unique) {
  346. $sig = Get-AuthenticodeSignature $file
  347. if ($sig.Status -ne "Valid") {
  348. throw "Invalid signature for ${file}: $($sig.Status)"
  349. }
  350. }
  351. - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
  352. with:
  353. name: opencode-desktop-${{ matrix.settings.target }}
  354. path: packages/desktop/dist/*
  355. - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
  356. if: needs.version.outputs.release
  357. with:
  358. name: latest-yml-${{ matrix.settings.target }}
  359. path: packages/desktop/dist/latest*.yml
  360. publish:
  361. needs:
  362. - version
  363. - build-cli
  364. - sign-cli-windows
  365. - build-electron
  366. if: always() && !failure() && !cancelled()
  367. runs-on: blacksmith-4vcpu-ubuntu-2404
  368. steps:
  369. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
  370. - uses: ./.github/actions/setup-bun
  371. - name: Login to GitHub Container Registry
  372. uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
  373. with:
  374. registry: ghcr.io
  375. username: ${{ github.repository_owner }}
  376. password: ${{ secrets.GITHUB_TOKEN }}
  377. - name: Set up QEMU
  378. uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
  379. - name: Set up Docker Buildx
  380. uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
  381. - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
  382. with:
  383. node-version: "24"
  384. registry-url: "https://registry.npmjs.org"
  385. - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  386. with:
  387. name: opencode-cli
  388. path: packages/opencode/dist
  389. - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  390. with:
  391. name: opencode-cli-windows
  392. path: packages/opencode/dist
  393. - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  394. with:
  395. name: opencode-cli-signed-windows
  396. path: packages/opencode/dist
  397. - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  398. if: needs.version.outputs.release
  399. with:
  400. pattern: latest-yml-*
  401. path: /tmp/latest-yml
  402. - name: Setup git committer
  403. id: committer
  404. uses: ./.github/actions/setup-git-committer
  405. with:
  406. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  407. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  408. - name: Cache apt packages (AUR)
  409. uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
  410. with:
  411. path: /var/cache/apt/archives
  412. key: ${{ runner.os }}-apt-aur-${{ hashFiles('.github/workflows/publish.yml') }}
  413. restore-keys: |
  414. ${{ runner.os }}-apt-aur-
  415. - name: Setup SSH for AUR
  416. run: |
  417. sudo apt-get update
  418. sudo apt-get install -y pacman-package-manager
  419. mkdir -p ~/.ssh
  420. echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
  421. chmod 600 ~/.ssh/id_rsa
  422. git config --global user.email "opencode@sst.dev"
  423. git config --global user.name "opencode"
  424. ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true
  425. - run: ./script/publish.ts
  426. env:
  427. OPENCODE_VERSION: ${{ needs.version.outputs.version }}
  428. OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
  429. AUR_KEY: ${{ secrets.AUR_KEY }}
  430. GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
  431. GH_REPO: ${{ needs.version.outputs.repo }}
  432. NPM_CONFIG_PROVENANCE: false
  433. LATEST_YML_DIR: /tmp/latest-yml
  434. TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
  435. TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}