Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Production

on:
push:
branches:
- main

jobs:
production:
name: Production
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0

- name: Checkout m
uses: actions/checkout@v2
with:
repository: cdr/m
ref: refs/heads/master
token: ${{ secrets.GH_ACCESS_TOKEN }}
submodules: true
fetch-depth: 0

- name: Deploy to Vercel (Production)
env:
VERCEL_ORG_ID: team_tGkWfhEGGelkkqUUm9nXq17r
VERCEL_PROJECT_ID: QmZRucMRh3GFk1817ZgXjRVuw5fhTspHPHKct3JNQDEPGd
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROD: true
run: ./ci/scripts/deploy_vercel.sh

- name: Slack alert on CI failure
uses: 8398a7/action-slack@v3
if: failure() && github.ref == 'refs/heads/master'
with:
status: ${{ job.status }}
fields: repo,message,author,workflow,action,eventName
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}