feat: ✨ update time picker #253
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json | |
--- | |
name: Deploy to staging | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- unlabeled | |
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.DEV_DB_URL }} | |
PR_NUM: ${{ github.event.pull_request.number }} | |
MIGRATION_DB_URL: ${{ secrets.MIGRATION_DB_URL }} | |
jobs: | |
deploy: | |
if: (!contains(github.event.pull_request.labels.*.name, 'no deploy')) | |
runs-on: ubuntu-latest | |
environment: | |
name: staging-${{ github.event.pull_request.number }} | |
url: https://staging-${{ github.event.pull_request.number }}.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 staging | |
run: pnpm migrate && pnpm sst deploy --stage staging-$PR_NUM |