Release: Website #6
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
| # Description: Manual workflow to refresh the apps/website Ashby roles and | |
| # cloud nodes snapshots and open a PR. Merging the PR triggers the existing | |
| # Vercel website production deploy via ci-vercel-website-preview.yaml. | |
| name: 'Release: Website' | |
| on: | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-website | |
| cancel-in-progress: true | |
| jobs: | |
| refresh-snapshots: | |
| if: github.repository == 'Comfy-Org/ComfyUI_frontend' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: main | |
| persist-credentials: false | |
| - name: Refresh Ashby snapshot | |
| uses: ./.github/actions/ashby-pull | |
| with: | |
| api_key: ${{ secrets.WEBSITE_ASHBY_API_KEY }} | |
| job_board_name: ${{ secrets.WEBSITE_ASHBY_JOB_BOARD_NAME }} | |
| - name: Refresh cloud nodes snapshot | |
| uses: ./.github/actions/cloud-nodes-pull | |
| with: | |
| api_key: ${{ secrets.WEBSITE_CLOUD_API_KEY }} | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 | |
| with: | |
| token: ${{ secrets.PR_GH_TOKEN }} | |
| commit-message: 'chore(website): refresh Ashby and cloud nodes snapshots' | |
| title: 'chore(website): refresh Ashby and cloud nodes snapshots' | |
| body: | | |
| Automated refresh of remote-data snapshots used by the website | |
| build: | |
| - `apps/website/src/data/ashby-roles.snapshot.json` — Ashby job | |
| board API | |
| - `apps/website/src/data/cloud-nodes.snapshot.json` — Comfy Cloud | |
| `/api/object_info` | |
| **Flow:** | |
| 1. `Release: Website` workflow ran (manual trigger). | |
| 2. This PR opens with the regenerated snapshots. | |
| 3. `CI: Vercel Website Preview` deploys a preview for review. | |
| 4. Merging to `main` triggers the production Vercel deploy. | |
| The snapshot fallback in `apps/website/src/utils/ashby.ts` and | |
| `apps/website/src/utils/cloudNodes.ts` remains intact: builds | |
| without the respective API keys continue to use the committed | |
| snapshot (with a warning annotation in CI). | |
| Triggered by workflow run `${{ github.run_id }}`. | |
| branch: chore/refresh-website-snapshots-${{ github.run_id }} | |
| base: main | |
| labels: | | |
| Release:Website | |
| delete-branch: true |