Merge pull request #51 from Trailgenic/codex/create-draft-pr-for-cont… #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Tool Registry | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: deploy-tool-registry-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Verify then deploy tool-registry Worker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run validate:json | |
| - run: npm test | |
| - run: npm run test:workers | |
| - run: npm run validate:registry | |
| - run: npm run wrangler:dry-run | |
| - run: git diff --check | |
| - name: Deploy tool-registry only | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| wranglerVersion: '4' | |
| command: deploy --config tool-registry/wrangler.jsonc | |
| - name: Allow Cloudflare deployment propagation | |
| run: sleep 25 | |
| - name: Run live acceptance harness | |
| run: node scripts/live-acceptance.mjs |