mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add export for address txs * transfer all export from page to dialog * remove old route and components * improve file name and fix loading state of icon button * basic implementation * refetch item status * status indicator for download items * changes for multichain * handle too many requests for downloads error * update button styles and spacing * fix tests * disable async export for multichain * Fix CSV export cancel flow and stabilize context updates Applied via @cursor push command * test and review fixes * move file to client folder * round 3 * add glossary * migration tasks and skill * move skills to .agents folder * rename migrate skill * refine project rules * move MIGRATION_TASKS.md to client directory * update sym links * refine migration skills * fixes after merging the main branch --------- Co-authored-by: Hanzo Dev <[email protected]>
4.0 KiB
4.0 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| deploy-demo | Create a GitHub deployment for the current branch using the deploy-review workflow | true |
Deploy demo
Prerequisites: GitHub CLI
This workflow uses gh to trigger and monitor the deployment workflow. Follow the check-github-cli skill first (ensure gh auth status succeeds; if not, guide the user to install/configure gh and do not proceed). The account needs permission to trigger workflows and read the repository.
Overview
Create a GitHub deployment for the current branch using .github/workflows/deploy-review.yml (workflow name: "Deploy review environment").
Steps
Note: In the command output, format all URLs as clickable Markdown links: [Link Text](URL).
1. Ensure all changes are pushed to remote
- Check status:
git status. If there are uncommitted changes, ask the user to commit and push, or rungit add/git commitand then push. - Push the current branch:
git push origin $(git branch --show-current)(orgit pushif upstream is set). Abort if push fails.
2. Check for an already running deployment for the current branch
- Get current branch:
git branch --show-current. - List runs for the deploy-review workflow on this branch that are in progress or queued:
gh run list --workflow=deploy-review.yml --branch <BRANCH> --status in_progressgh run list --workflow=deploy-review.yml --branch <BRANCH> --status queued
- If any run is returned, abort the command and tell the user a deployment is already running for this branch (include a link to the run).
3. Resolve the "envs_preset" workflow input (optional)
- Get valid options from the workflow file (single source of truth): Read
.github/workflows/deploy-review.ymland extract the list of allowed values fromon.workflow_dispatch.inputs.envs_preset.options(the YAML array under that key). Do not hardcode or copy the preset list into this skill — always read it from the file. - Infer from the user’s prompt which preset they want. Examples:
- "deploy a demo for base" or "deploy with base preset" → preset
base - "spin up a demo using main preset" → preset
main
- "deploy a demo for base" or "deploy with base preset" → preset
- If the user did not mention any preset: skip passing
envs_preset(the workflow uses its default). - Validate the chosen preset: Check that the user’s chosen preset is one of the values in the options list you extracted from the workflow file. If it is not in that list, notify the user (you can show the valid options from the file) and abort the command.
4. Trigger the workflow and capture the run ID
- Run the workflow from the current branch (use the branch name from step 1 or 2):
- Without preset:
gh workflow run deploy-review.yml --ref <BRANCH> - With preset:
gh workflow run deploy-review.yml --ref <BRANCH> -f envs_preset=<PRESET>
- Without preset:
- The CLI does not print the new run ID. To get it: wait a few seconds, then list the latest run for this workflow and branch:
gh run list --workflow=deploy-review.yml --branch <BRANCH> --limit 1. Use that run’s ID for the next steps.
5. Monitor the workflow until it completes
- Watch the run:
gh run watch <RUN_ID>(polls until completion). - Track the outcome: success, failure, or cancelled (from the watch output or from
gh run view <RUN_ID>). - When completed, get outputs and deployment URL:
gh run view <RUN_ID>and, if available,gh run view <RUN_ID> --logor job outputs. The deployment URL may appear in the workflow summary or in job outputs; extract it and include it in the notification.
6. Send system notifications with results
- When the workflow is triggered: Notify the user that the deployment has been started (include a link to the run).
- When the workflow completes: Notify with the final status (success, failure, or cancelled), the deployment URL if available, and any other relevant outputs.
- On failure: Notify with the error and details (e.g. failed job/step from
gh run view <RUN_ID>orgh run view <RUN_ID> --log-failed).