chore: fix useTranslation ci problem which cause error in unit test #1129
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: "deploy nightly" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "client/web/**" | |
- "client/shared/**" | |
- "client/packages/design/**" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Inject Analytics | |
run: node ./client/web/build/inject-analytics.js | |
- name: Deploy Prod | |
uses: amondnet/vercel-action@master | |
env: | |
VERSION: ${{ env.GITHUB_SHA }} | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.ORG_ID}} | |
vercel-project-id: ${{ secrets.PROJECT_ID}} | |
working-directory: ./ | |
vercel-args: '--prod' | |
- name: Notify to Service | |
continue-on-error: true | |
uses: muinmomin/[email protected] | |
with: | |
url: https://paw-server-nightly.moonrailgun.com/api/plugin:com.msgbyte.simplenotify/webhook/callback | |
data: '{"text": "The new version of the frontend code is deployed", "subscribeId": "${{ secrets.NOTIFY_SUB_ID}}"}' |