chore: add action for github add vercel deploy

pull/56/head
moonrailgun 4 years ago
parent 4e16816b30
commit b5e73ecec8

@ -0,0 +1,31 @@
name: "Deployment Tailchat Github App"
on:
push:
branches:
- master
paths:
- "app/github-app/**"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
defaults:
run:
working-directory: app/github-app
steps:
- uses: actions/checkout@v1
- name: Deploy to Vercel
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: prj_KwCzbuSaEj3XmP0sYvvnqqiK7nCW
working-directory: ./
vercel-args: '--prod'

@ -0,0 +1,10 @@
// For vercel
// Reference: https://probot.github.io/docs/deployment/#vercel
const { createNodeMiddleware, createProbot } = require('probot');
const app = require('../../../src/app').app;
module.exports = createNodeMiddleware(app, {
probot: createProbot(),
webhooksPath: '/api/github/webhooks',
});

@ -14,6 +14,7 @@
"scripts": {
"dev": "nodemon --watch \"src/**\" --ext \"ts\" --ignore \"src/**/*.spec.ts\" --exec \"ts-node --transpile-only src/index.ts\"",
"build": "tsc",
"prepare": "tsc",
"test": "jest"
},
"dependencies": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Loading…
Cancel
Save