Deploy a portal to production #2
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 a portal to production | |
on: | |
workflow_dispatch: | |
inputs: | |
portal-name: | |
type: choice | |
description: Which portal to deploy | |
options: | |
- adknowledgeportal | |
- challengeportal | |
tag: | |
required: true | |
type: string | |
description: Which tag or branch to deploy from | |
jobs: | |
build-and-deploy: | |
name: build-and-deploy | |
runs-on: ubuntu-latest | |
# Allow OIDC Integration (so we can assume the AWS role to deploy) | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.tag }} | |
- uses: ./.github/actions/pnpm-setup-action | |
- name: Assume AWS Role | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::797640923903:role/sagebase-github-oidc-sage-bionetworks-web-monorepo-infra | |
role-session-name: GitHubActions-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }} | |
role-duration-seconds: 1200 | |
- name: setup-outputbucket-prod | |
run: | | |
chmod +x apps/synapse-portal-framework/run.sh | |
./apps/synapse-portal-framework/run.sh WARNING-push-production ${{ inputs.portal-name }} |