mirror of https://github.com/msgbyte/tailchat
chore: add action for github add vercel deploy
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',
|
||||
});
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue