Merge pull request #1117 from TempleDAO/temple-advocate-patch-1 #278
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
name: dapp => stage | |
on: | |
push: | |
branches: | |
- 'stage' | |
paths: | |
- "apps/dapp/**" | |
- ".github/workflows/dapp-stage.yaml" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: amondnet/vercel-action@v20 | |
id: deploy_step | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required | |
vercel-args: '-A apps/dapp/vercel.json' #Optional | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required | |
vercel-project-id: ${{ secrets.DAPP_PROJECT_ID }} #Required | |
github-token: ${{ secrets.CI_TOKEN }} | |
github-comment: false | |
scope: ${{ secrets.VERCEL_ORG_ID }} | |
alias-domains: | #Optional | |
stage.templedao.link | |
continue-on-error: true | |
- name: "notify failure" | |
if: steps.deploy_step.outcome == 'failure' | |
uses: rjstone/discord-webhook-notify@v1 | |
with: | |
severity: error | |
description: (Dapp) STAGE Deploy to Vercel failed! | |
details: Check the GH Action or Vercel logs for details. | |
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
- name: "fail" | |
if: steps.deploy_step.outcome == 'failure' | |
run: exit 1 | |
- name: "notify success" | |
uses: rjstone/discord-webhook-notify@v1 | |
with: | |
severity: info | |
description: (Dapp) STAGE Deploy to Vercel succeeded! | |
details: "[View Stage Deployment](https://stage.templedao.link)" | |
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} |