@@ -547,88 +547,6 @@ jobs:
547547 gadget-api-token: ${{ secrets.GADGET_API_TOKEN }}
548548` ` `
549549
550- # ## Gadget App Deployment489
551-
552- A comprehensive Gadget app deployment workflow supporting push, test, and production deployment stages with multi-environment management.
553-
554- # ### **Features**
555- - **Custom-environment support**: Support for custom development environment name
556- - **Conditional automated testing**: Automatic test execution controlled by boolean flag
557- - **Conditional deployment**: Production deployment controlled by boolean flag
558- - **Force push capabilities**: Ensures code synchronization with `--force` flag
559- - **Gadget CLI integration**: Uses `ggt` CLI tool for all operations
560- - **Test validation**: Runs full test suite before production deployment
561-
562- # ### **Inputs**
563- | Name | Required | Type | Default | Description |
564- |------|----------|------|---------|-------------|
565- | **Core Configuration** |
566- | app-name | ✅ | string | | Gadget App name to deploy to (required) |
567- | test | ❌ | boolean | false | Enable testing on development environment (true/false) |
568- | deploy-production | ❌ | boolean | false | Enable production deployment (true/false) |
569- | **Environment Configuration** |
570- | environment-name | ❌ | string | staging | Main development environment name |
571-
572- # ### **Secrets**
573- | Name | Required | Description |
574- |------|----------|-------------|
575- | gadget-api-token | ✅ | Gadget API authentication token |
576-
577- # ### **Outputs**
578- | Name | Description |
579- |------|-------------|
580- | push-environment-status | Status of test environment push (success/failure) |
581-
582- # ### **Example Usage**
583-
584- **Push to Staging Only:**
585- ` ` ` yaml
586- jobs:
587- push-staging:
588- uses: aligent/workflows/.github/workflows/gadget-deploy.yml@main
589- with:
590- app-name: my-gadget-app
591- secrets:
592- gadget-api-token: ${{ secrets.GADGET_API_TOKEN }}
593- ` ` `
594-
595- **Push with Testing:**
596- ` ` ` yaml
597- jobs:
598- push-and-test:
599- uses: aligent/workflows/.github/workflows/gadget-deploy.yml@main
600- with:
601- app-name: my-gadget-app
602- test: true
603- secrets:
604- gadget-api-token: ${{ secrets.GADGET_API_TOKEN }}
605- ` ` `
606-
607- **Full Deployment Pipeline (Push, Test, Deploy):**
608- ` ` ` yaml
609- jobs:
610- deploy-production:
611- uses: aligent/workflows/.github/workflows/gadget-deploy.yml@main
612- with:
613- app-name: my-gadget-app
614- test: true
615- deploy-production: true
616- secrets:
617- gadget-api-token: ${{ secrets.GADGET_API_TOKEN }}
618- ` ` `
619-
620- **Push to custom Environment Name:**
621- ` ` ` yaml
622- jobs:
623- deploy-custom:
624- uses: aligent/workflows/.github/workflows/gadget-deploy.yml@main
625- with:
626- app-name: my-gadget-app
627- environment-name: development
628- secrets:
629- gadget-api-token: ${{ secrets.GADGET_API_TOKEN }}
630- ` ` `
631-
632550# ## Shopify App Deployment
633551
634552A streamlined Shopify app deployment workflow supporting both development and production environments with automatic configuration management.
0 commit comments