AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
ci(release): record staging, Cloud and self-hosted deploys in Linear releases (#16957)
Othman Abu Ajamieh1b7e63959de2
diff --git a/.github/workflows/continuous-delivery-cloud.yml b/.github/workflows/continuous-delivery-cloud.ymlindex e106d73b5af..30f71c1afa5 100644--- a/.github/workflows/continuous-delivery-cloud.yml+++ b/.github/workflows/continuous-delivery-cloud.yml@@ -162,6 +162,25 @@ jobs:-d "{\"content\": \"🚀 **Cloud production deployed** ($DEPLOY_KIND)\\n\\n**Version:** \`$IMAGE_TAG\`\\n**Changelog:** ${{ github.server_url }}/${{ github.repository }}/releases/latest\\n**Run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \"$WEBHOOK"+ # Records the deploy in the Linear "Cloud" release pipeline. Never fails the workflow.+ # Only a dispatch deploys an image built from github.sha; a rollback or emergency deploy does not sync.+ linear-release:+ needs: promote-to-production+ if: always() && needs.promote-to-production.result == 'success' && github.event_name == 'workflow_dispatch'+ runs-on: ubuntu-latest+ timeout-minutes: 5+ continue-on-error: true+ steps:+ - uses: actions/checkout@v5+ with:+ fetch-depth: 0+ - uses: linear/linear-release-action@30f9ae77461ec29f07fffe0c52edd1909bfbb6f5 # v0.18.1+ with:+ access_key: ${{ secrets.LINEAR_RELEASE_KEY_CLOUD }}+ include_paths: '!packages/pieces/community/**,!packages/pieces/core/**,!packages/pieces/custom/**,!bun.lock,!tsconfig.base.json,!docs/**'+ no_branch_ref_detection: 'true'+ links: Run=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}+# Run smoke test after scheduled promotionsmoke-test:needs: promote-to-productiondiff --git a/.github/workflows/continuous-delivery-stg.yml b/.github/workflows/continuous-delivery-stg.ymlindex fcafcd73811..232ef024cc2 100644--- a/.github/workflows/continuous-delivery-stg.yml+++ b/.github/workflows/continuous-delivery-stg.yml@@ -222,6 +222,25 @@ jobs:path: packages/tests-e2e/test-results/results.jsonretention-days: 30+ # Records the deploy in the Linear "Staging" release pipeline. Never fails the workflow.+ # Piece commits are left out: pieces ship through npm, not the image.+ linear-release:+ needs: [deploy-staging-app, deploy-staging-workers]+ if: always() && needs.deploy-staging-app.result == 'success' && needs.deploy-staging-workers.result == 'success'+ runs-on: ubuntu-latest+ timeout-minutes: 5+ continue-on-error: true+ steps:+ - uses: actions/checkout@v5+ with:+ fetch-depth: 0+ - uses: linear/linear-release-action@30f9ae77461ec29f07fffe0c52edd1909bfbb6f5 # v0.18.1+ with:+ access_key: ${{ secrets.LINEAR_RELEASE_KEY_STAGING }}+ include_paths: '!packages/pieces/community/**,!packages/pieces/core/**,!packages/pieces/custom/**,!bun.lock,!tsconfig.base.json,!docs/**'+ no_branch_ref_detection: 'true'+ links: Run=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}+# Thursday 5 PM UTC: tag current staging image + commit as release-candidate.# Also runs when a hotfix branch is merged to main — staging still holds the# hotfix image at that point (multi-arch build takes 10–15 min), so the SSHdiff --git a/.github/workflows/release-self-hosted.yml b/.github/workflows/release-self-hosted.ymlindex a42f44a2071..6b1a4f8b871 100644--- a/.github/workflows/release-self-hosted.yml+++ b/.github/workflows/release-self-hosted.yml@@ -30,6 +30,8 @@ jobs:needs: preflightif: ${{ always() && !cancelled() && !failure() }}runs-on: ubuntu-24.04+ outputs:+ digest: ${{ steps.build.outputs.digest }}environment:name: releasesteps:@@ -80,6 +82,7 @@ jobs:- uses: depot/setup-action@v1- name: Build and push+ id: builduses: depot/build-push-action@v1with:project: du7O4b0e8P@@ -133,6 +136,36 @@ jobs:-d "{\"content\": \"📦 **Self-hosted $TAG released**\\n\\n**Docker image:** \`activepieces/activepieces:$TAG\` (also on ghcr.io)\\n**Changelog:** ${{ github.server_url }}/${{ github.repository }}/releases/tag/$TAG\\n**Run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \"$WEBHOOK"+ # Records the release in the Linear "Self-hosted" release pipeline once the image is published,+ # even when a later step of the release job fails.+ # Minor tags live on release branches, so the scan starts at the merge-base with the previous release tag.+ linear-release:+ needs: release+ if: ${{ !cancelled() && needs.release.outputs.digest != '' && !contains(inputs.tag, '-rc') }}+ runs-on: ubuntu-24.04+ timeout-minutes: 5+ steps:+ - uses: actions/checkout@v5+ with:+ fetch-depth: 0+ - name: Find the scan base+ id: base+ env:+ TAG: ${{ inputs.tag }}+ run: |+ PREVIOUS=$(git tag | grep -E '^[0-9]+\.[0-9]+\.[0-9]+(-hotfix\.[0-9]+)?$' | grep -vx "$TAG" | { cat; echo "$TAG"; } | sort -V | grep -B1 -x "$TAG" | head -1)+ echo "Previous release: $PREVIOUS"+ echo "sha=$(git merge-base "$PREVIOUS" HEAD)" >> "$GITHUB_OUTPUT"+ - uses: linear/linear-release-action@30f9ae77461ec29f07fffe0c52edd1909bfbb6f5 # v0.18.1+ with:+ access_key: ${{ secrets.LINEAR_RELEASE_KEY_SELF_HOSTED }}+ version: ${{ inputs.tag }}+ name: ${{ inputs.tag }}+ base_ref: ${{ steps.base.outputs.sha }}+ include_paths: '!packages/pieces/community/**,!packages/pieces/core/**,!packages/pieces/custom/**,!bun.lock,!tsconfig.base.json,!docs/**'+ no_branch_ref_detection: 'true'+ links: Run=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}+sync-version-to-main:needs: releaseif: ${{ !cancelled() && needs.release.result == 'success' }}