Skip to content

ci: 👷 enable manual trigger for production deploy #35

ci: 👷 enable manual trigger for production deploy

ci: 👷 enable manual trigger for production deploy #35

Workflow file for this run

# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Deploy to production
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
deployments: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CERTIFICATE_ARN: ${{ secrets.CERTIFICATE_ARN }}
DATABASE_URL: ${{ secrets.PROD_DB_URL }}
MIGRATION_DB_URL: ${{ secrets.MIGRATION_DB_URL }}
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: production
url: https://zotmeet.com
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-and-pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Deploy ZotMeet to production
run: STAGE=prod pnpm migrate && pnpm sst deploy --stage prod