From 73ff71eb576b3aafdc7644c6a7066e0cad291cb1 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 30 Jun 2021 14:55:31 +0000 Subject: [PATCH 1/3] Add production workflow --- .github/workflows/production.yml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/production.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 000000000..bcdd61f5d --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,41 @@ +name: Preview + +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) + id: preview + 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 }} From 35beccd7bf9ce34fc87cb01443019ee9b76d1f62 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 30 Jun 2021 14:58:18 +0000 Subject: [PATCH 2/3] Update workflow name --- .github/workflows/production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index bcdd61f5d..23d1a1e5c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -1,4 +1,4 @@ -name: Preview +name: Production on: push: From 63e994fa08cbf6b73cc6388ed04fb4029bdcc420 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 30 Jun 2021 14:59:03 +0000 Subject: [PATCH 3/3] Remove unused id --- .github/workflows/production.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 23d1a1e5c..caf18a883 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -23,7 +23,6 @@ jobs: fetch-depth: 0 - name: Deploy to Vercel (Production) - id: preview env: VERCEL_ORG_ID: team_tGkWfhEGGelkkqUUm9nXq17r VERCEL_PROJECT_ID: QmZRucMRh3GFk1817ZgXjRVuw5fhTspHPHKct3JNQDEPGd