mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
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/webhook-action@v1.0.0
|
|
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}}"}'
|