Changesets · Branches · Tags · Compare
| Changeset | 2db379f6084fb71077e4962225df770f36794c363bdaaf5c9b407d07c48fbfc6 |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-25 17:05 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-25 17:05 -07:00 |
| Parents | 4ab005c754da |
2 files changed
added .github/workflows/runloop-blueprint-template.json +8 −0
| @@ -0,0 +1,8 @@ | ||
| 1 | +{ | |
| 2 | + "name": "cn", | |
| 3 | + "system_setup_commands": [ | |
| 4 | + "npm i -g @continuedev/cli@latest", | |
| 5 | + "sudo apt update", | |
| 6 | + "sudo apt install -y ripgrep" | |
| 7 | + ] | |
| 8 | +} |
modified .github/workflows/stable-release.yml +37 −0
| @@ -220,3 +220,40 @@ | ||
| 220 | 220 | # Mark the original beta release as superseded |
| 221 | 221 | gh release edit "v${{ steps.find_beta.outputs.beta_version }}" \ |
| 222 | 222 | --notes "This beta version has been promoted to stable as v${{ steps.final_version.outputs.stable_version }}." |
| 223 | + | |
| 224 | + - name: Publish Blueprint to Runloop | |
| 225 | + env: | |
| 226 | + RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }} | |
| 227 | + run: | | |
| 228 | + echo "Publishing blueprint 'cn' to Runloop API for version ${{ steps.final_version.outputs.stable_version }}" | |
| 229 | + | |
| 230 | + # Use blueprint configuration from template file | |
| 231 | + cp .github/workflows/runloop-blueprint-template.json blueprint.json | |
| 232 | + | |
| 233 | + # Publish to Runloop API | |
| 234 | + response=$(curl -X POST "https://api.runloop.ai/v1/blueprints" \ | |
| 235 | + -H "Authorization: Bearer $RUNLOOP_API_KEY" \ | |
| 236 | + -H "Content-Type: application/json" \ | |
| 237 | + -d @blueprint.json \ | |
| 238 | + -w "%{http_code}" \ | |
| 239 | + -s) | |
| 240 | + | |
| 241 | + http_code=$(echo "$response" | tail -c 4) | |
| 242 | + response_body=$(echo "$response" | head -c -4) | |
| 243 | + | |
| 244 | + if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then | |
| 245 | + echo "✅ Successfully published blueprint to Runloop API" | |
| 246 | + echo "Response: $response_body" | |
| 247 | + | |
| 248 | + # Extract blueprint ID if available | |
| 249 | + blueprint_id=$(echo "$response_body" | jq -r '.id // empty') | |
| 250 | + if [[ -n "$blueprint_id" ]]; then | |
| 251 | + echo "Blueprint ID: $blueprint_id" | |
| 252 | + echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT | |
| 253 | + fi | |
| 254 | + else | |
| 255 | + echo "❌ Failed to publish blueprint to Runloop API" | |
| 256 | + echo "HTTP Code: $http_code" | |
| 257 | + echo "Response: $response_body" | |
| 258 | + exit 1 | |
| 259 | + fi |