YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci: beta builds on most main commits, stable only on Bump/release-app
Louis Beaumontc02367843b11
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 610c19be8..e129423d3 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -33,6 +33,7 @@ jobs:should_release: ${{ steps.check.outputs.should_release }}should_publish: ${{ steps.check.outputs.should_publish }}should_test: ${{ steps.check.outputs.should_test }}+ should_beta: ${{ steps.check.outputs.should_beta }}macos26_runner: ${{ steps.check-runner.outputs.macos26_runner }}windows_runner: ${{ steps.check-runner.outputs.windows_runner }}steps:@@ -53,6 +54,17 @@ jobs:echo "should_publish=false" >> $GITHUB_OUTPUTfi+ # Beta: upload on most main commits and workflow_dispatch+ # This lets us test updates via beta channel before publishing stable+ AUTHOR=$(git log -1 --pretty=%an)+ if echo "$COMMIT_MSG" | grep -qE "^(Bump app|release-app|fix|feat|refactor|perf|ci)"; then+ echo "should_beta=true" >> $GITHUB_OUTPUT+ elif [ "$AUTHOR" = "Louis Beaumont" ] || [ "$AUTHOR" = "louis030195" ]; then+ echo "should_beta=true" >> $GITHUB_OUTPUT+ else+ echo "should_beta=false" >> $GITHUB_OUTPUT+ fi+# Check for explicit testing or skip flags firstif echo "$COMMIT_MSG" | grep -q "release-app"; thenecho "should_test=true" >> $GITHUB_OUTPUT@@ -103,7 +115,7 @@ jobs:draft:needs: [check_commit]- if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true' || needs.check_commit.outputs.should_beta == 'true'runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4@@ -120,12 +132,14 @@ jobs:fi- name: create draft release+ if: needs.check_commit.outputs.should_release == 'true' || github.event_name == 'workflow_dispatch'uses: crabnebula-dev/[email protected]with:command: release draft ${{ secrets.CN_APP_SLUG }} --framework tauriapi-key: ${{ secrets.CN_API_KEY }}- name: create beta draft release+ if: needs.check_commit.outputs.should_beta == 'true' || github.event_name == 'workflow_dispatch'uses: crabnebula-dev/[email protected]continue-on-error: truewith:@@ -134,7 +148,7 @@ jobs:publish-tauri:needs: [check_commit, draft]- if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true' || needs.check_commit.outputs.should_beta == 'true'permissions:contents: writestrategy:@@ -676,6 +690,9 @@ jobs:USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"MAX_RETRIES: 5RETRY_DELAY: 30+ SHOULD_RELEASE: ${{ needs.check_commit.outputs.should_release }}+ SHOULD_BETA: ${{ needs.check_commit.outputs.should_beta }}+ IS_DISPATCH: ${{ github.event_name == 'workflow_dispatch' }}run: |# create temp directory for cli$cliDir = Join-Path $Env:GITHUB_WORKSPACE "cn-cli-temp"@@ -694,45 +711,52 @@ jobs:$cliFullPath = Join-Path $cliDir "cn.exe"Write-Host "uploading assets from $(pwd) using $cliFullPath..."- $attempt = 1- $success = $false-- while (-not $success -and $attempt -le $env:MAX_RETRIES) {- Write-Host "Attempt $attempt of $env:MAX_RETRIES"- try {- & $cliFullPath release upload ${{ secrets.CN_APP_SLUG }} --framework tauri -vv- if ($LASTEXITCODE -eq 0) {- $success = $true- Write-Host "Upload successful!"- } else {- throw "CLI returned exit code $LASTEXITCODE"- }- } catch {- Write-Host "Error during attempt $attempt`: $_"- if ($attempt -lt $env:MAX_RETRIES) {- Write-Host "Waiting $env:RETRY_DELAY seconds before retry..."- Start-Sleep -Seconds $env:RETRY_DELAY+ # Upload to stable (only for release builds and workflow_dispatch)+ if ($env:SHOULD_RELEASE -eq "true" -or $env:IS_DISPATCH -eq "true") {+ $attempt = 1+ $success = $false++ while (-not $success -and $attempt -le $env:MAX_RETRIES) {+ Write-Host "Stable upload attempt $attempt of $env:MAX_RETRIES"+ try {+ & $cliFullPath release upload ${{ secrets.CN_APP_SLUG }} --framework tauri -vv+ if ($LASTEXITCODE -eq 0) {+ $success = $true+ Write-Host "Stable upload successful!"+ } else {+ throw "CLI returned exit code $LASTEXITCODE"+ }+ } catch {+ Write-Host "Error during attempt $attempt`: $_"+ if ($attempt -lt $env:MAX_RETRIES) {+ Write-Host "Waiting $env:RETRY_DELAY seconds before retry..."+ Start-Sleep -Seconds $env:RETRY_DELAY+ }}+ $attempt++}- $attempt++- }- if (-not $success) {- Write-Host "Failed to upload after $env:MAX_RETRIES attempts"- exit 1+ if (-not $success) {+ Write-Host "Failed to upload stable after $env:MAX_RETRIES attempts"+ exit 1+ }+ } else {+ Write-Host "Skipping stable upload (beta-only build)"}- # Also upload to beta channel- Write-Host "Uploading to beta channel..."- try {- & $cliFullPath release upload ${{ secrets.CN_APP_SLUG_BETA }} --framework tauri -vv- Write-Host "Beta upload successful!"- } catch {- Write-Host "Beta upload failed (non-fatal): $_"+ # Upload to beta channel+ if ($env:SHOULD_BETA -eq "true" -or $env:IS_DISPATCH -eq "true") {+ Write-Host "Uploading to beta channel..."+ try {+ & $cliFullPath release upload ${{ secrets.CN_APP_SLUG_BETA }} --framework tauri -vv+ Write-Host "Beta upload successful!"+ } catch {+ Write-Host "Beta upload failed (non-fatal): $_"+ }}- name: Upload Assets to CrabNebula Cloud (Non-Windows)- if: matrix.os_type != 'windows'+ if: matrix.os_type != 'windows' && (needs.check_commit.outputs.should_release == 'true' || github.event_name == 'workflow_dispatch')uses: crabnebula-dev/[email protected]env:CN_VERBOSE: "2"@@ -742,7 +766,7 @@ jobs:path: ./apps/screenpipe-app-tauri/src-tauri- name: Upload Assets to CrabNebula Beta (Non-Windows)- if: matrix.os_type != 'windows'+ if: matrix.os_type != 'windows' && (needs.check_commit.outputs.should_beta == 'true' || github.event_name == 'workflow_dispatch')uses: crabnebula-dev/[email protected]continue-on-error: trueenv: