Skip to content

Commit 31d4c02

Browse files
cursoragentechobt
andcommitted
feat(release): auto-publish cli builds to cloudflare r2
Wire release.yml to call publish-r2.yml after a successful tag or dispatch release. Upload archives, checksums, release JSON, and checksum-verifying installers to software.cortex.foundation. Teach cortex upgrade to parse the static R2 manifest layout. Co-authored-by: Mathis <echobt@users.noreply.github.com>
1 parent ecd249c commit 31d4c02

18 files changed

Lines changed: 992 additions & 285 deletions

File tree

.github/workflows/publish-r2.yml

Lines changed: 196 additions & 139 deletions
Large diffs are not rendered by default.

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,24 @@ jobs:
374374
env:
375375
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
376376

377+
# ==========================================================================
378+
# Publish binaries to software.cortex.foundation (Cloudflare R2)
379+
# ==========================================================================
380+
publish:
381+
name: Publish to software.cortex.foundation
382+
needs: [prepare, release]
383+
if: success() && needs.release.result == 'success'
384+
uses: ./.github/workflows/publish-r2.yml
385+
with:
386+
version: ${{ needs.prepare.outputs.version }}
387+
channel: ${{ contains(needs.prepare.outputs.version, '-') && 'beta' || 'stable' }}
388+
release_run_id: ${{ github.run_id }}
389+
secrets:
390+
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
391+
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
392+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
393+
permissions:
394+
contents: read
395+
actions: read
396+
377397

0 commit comments

Comments
 (0)