Deploy to Production #4
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 to Production | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Tag to deploy' | |
| required: true | |
| type: string | |
| permissions: {} | |
| jobs: | |
| deploy: | |
| uses: ./.github/workflows/deploy.yml | |
| with: | |
| tag: ${{ inputs.tag }} | |
| environment: production | |
| secrets: | |
| DEPLOYMENT_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }} | |
| wait-for-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Wait for deployment to complete | |
| run: | | |
| # fetch the tag to ensure it's available | |
| git fetch origin tag ${{ inputs.tag }} --no-tags | |
| ./.github/scripts/wait-for-deploy.sh https://inbrowser.link ${{ inputs.tag }} |