|
7 | 7 | - main |
8 | 8 | paths: |
9 | 9 | - '.github/workflows/runloop-blueprint-template.json' |
| 10 | + - '.github/workflows/runloop-blueprint-staging-template.json' |
10 | 11 |
|
11 | 12 | permissions: |
12 | 13 | contents: read |
13 | 14 |
|
14 | 15 | jobs: |
15 | | - upload-blueprint: |
16 | | - name: Upload Blueprint to Runloop |
| 16 | + upload-blueprints: |
| 17 | + name: Upload Blueprints to Runloop |
17 | 18 | runs-on: ubuntu-latest |
18 | 19 | # Only run this workflow on the main repository (continuedev/continue) |
19 | 20 | if: github.repository == 'continuedev/continue' |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + include: |
| 24 | + - template: runloop-blueprint-template.json |
| 25 | + name: cn |
| 26 | + - template: runloop-blueprint-staging-template.json |
| 27 | + name: cn-staging |
20 | 28 | steps: |
21 | 29 | - name: Checkout |
22 | 30 | uses: actions/checkout@v6 |
23 | 31 |
|
24 | | - - name: Publish Blueprint to Runloop |
| 32 | + - name: Publish ${{ matrix.name }} Blueprint to Runloop |
25 | 33 | env: |
26 | 34 | RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }} |
27 | 35 | run: | |
28 | | - echo "Publishing blueprint 'cn' to Runloop API" |
| 36 | + echo "Publishing blueprint '${{ matrix.name }}' to Runloop API" |
29 | 37 |
|
30 | 38 | # Use blueprint configuration from template file |
31 | | - cp .github/workflows/runloop-blueprint-template.json blueprint.json |
| 39 | + cp .github/workflows/${{ matrix.template }} blueprint.json |
32 | 40 |
|
33 | 41 | # Publish to Runloop API |
34 | 42 | response=$(curl -X POST "https://api.runloop.ai/v1/blueprints" \ |
|
42 | 50 | response_body=$(echo "$response" | head -c -4) |
43 | 51 |
|
44 | 52 | if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then |
45 | | - echo "✅ Successfully published blueprint to Runloop API" |
| 53 | + echo "✅ Successfully published blueprint '${{ matrix.name }}' to Runloop API" |
46 | 54 | echo "Response: $response_body" |
47 | 55 |
|
48 | 56 | # Extract blueprint ID if available |
|
52 | 60 | echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT |
53 | 61 | fi |
54 | 62 | else |
55 | | - echo "❌ Failed to publish blueprint to Runloop API" |
| 63 | + echo "❌ Failed to publish blueprint '${{ matrix.name }}' to Runloop API" |
56 | 64 | echo "HTTP Code: $http_code" |
57 | 65 | echo "Response: $response_body" |
58 | 66 | exit 1 |
|
0 commit comments