Manual Build & Deploy #117
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: Manual Build & Deploy | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| target: | |
| description: 'The application target to deploy (e.g., backend, auth).' | |
| required: true | |
| type: string | |
| version: | |
| description: 'The specific version to deploy (e.g., v1.2.3). Defaults to latest if not provided.' | |
| required: false | |
| type: string | |
| # Caller permissions must equal or exceed the reusable workflow's | |
| # declared scope; deploy-base.yml requires contents:write to create | |
| # release tags via github-script. Granting less here makes GHA reject | |
| # the run at startup with no jobs (#857). | |
| permissions: | |
| contents: write | |
| jobs: | |
| trigger-build-and-deploy: | |
| uses: ./.github/workflows/deploy-base.yml | |
| with: | |
| target: ${{ github.event.inputs.target }} | |
| version: ${{ github.event.inputs.version || 'latest' }} | |
| secrets: inherit |