Skip to content

feat: add language selector on login page (#135) #102

feat: add language selector on login page (#135)

feat: add language selector on login page (#135) #102

Workflow file for this run

on:
push:
branches:
- main
name: πŸš€ Deploy staging
concurrency: deploy_staging
permissions:
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage
contents: read
actions: write
defaults:
run:
shell: bash
jobs:
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Configure AWS Credentials (Authentication)
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
- name: 'πŸš€ Deploy staging'
env:
CDK_DEFAULT_REGION: ${{ vars.AWS_REGION }}
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT }}
ALLOWED_HOST: ${{ secrets.ALLOWED_HOST }}
run: cd apps/backend-infrastructure && pnpm cdk deploy --context applicationName="${{ secrets.APPLICATION_NAME }}" --context hostedZoneDomainName="${{ secrets.DOMAIN_NAME }}"
deploy_staging_surge:
runs-on: ubuntu-latest
env:
surge_url: staging-wfp-dmp.surge.sh
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build Interfaces & Frontend
run: pnpm turbo build
env:
NEXT_PUBLIC_API_BASE_URL: https://staging-api-dmp.ovio.org
- name: Export to static HTML
run: |
cd apps/frontend
./gen_env.sh staging
pnpm next export
- name: Deploy on surge
uses: dswistowski/surge-sh-action@v1
with:
domain: ${{ env.surge_url }}
project: "apps/frontend/out/."
login: ${{ secrets.surge_login }}
token: ${{ secrets.surge_token }}