add AWS amplify (#79) #1
This file contains 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 Infra to Review | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
commit: | |
description: "Leave blank to use current HEAD, or provide an override commit SHA" | |
type: string | |
required: false | |
jobs: | |
ref: | |
name: Load Commit Ref | |
runs-on: ubuntu-latest | |
steps: | |
- id: ref | |
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1 | |
with: | |
commit: ${{ inputs.commit }} | |
outputs: | |
version_tag: ${{ steps.ref.outputs.version_tag }} | |
refspec: ${{ steps.ref.outputs.refspec }} | |
deploy-infra: | |
name: Deploy Infra to Review | |
needs: [ref] | |
uses: ./.github/workflows/deploy_infra.yml | |
with: | |
refspec: ${{ needs.ref.outputs.refspec }} | |
environment: review | |
secrets: inherit |