Skip to content

updated next version (#347) #264

updated next version (#347)

updated next version (#347) #264

Workflow file for this run

name: Staging Deployment
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
deploy_staging:
name: Deploy Staging
runs-on: ubuntu-latest
environment:
name: staging
url: ${{ vars.ENV_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '21.1.0'
- name: Install dependencies
run: npm install
- name: Run migrations
run: npx migrate-mongo up
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
- name: Lint and build code, then publish to Vercel
run: npx vercel --debug --token ${{ secrets.VERCEL_TOKEN }} -n ${{ vars.VERCEL_PROJECT }} --yes --prod
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
BASE_URL: ${{ vars.ENV_URL }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
HMAC_INVITE_SECRET: ${{ secrets.HMAC_INVITE_SECRET }}
INVITE_TIMEOUT: ${{ vars.INVITE_TIMEOUT }}
RESET_TIMEOUT: ${{ vars.RESET_TIMEOUT }}
SENDER_EMAIL: ${{ vars.SENDER_EMAIL }}
SENDER_PWD: ${{ secrets.SENDER_PWD }}
CHECK_IN_CODE: ${{ secrets.CHECK_IN_CODE }}
- name: Success
run: echo "πŸš€ Deploy successful - BLAST OFF WOO! (woot woot) !!! πŸ• πŸ• πŸ• πŸš€ "