-
Notifications
You must be signed in to change notification settings - Fork 154
49 lines (40 loc) · 997 Bytes
/
server-deploy.yml
File metadata and controls
49 lines (40 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy Server
on:
push:
branches:
- master
paths:
- server/**
env:
OPENAI_TOKEN: ${{secrets.OPENAI_TOKEN}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup Node v16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
working-directory: ./server
run: npm install --prefix ./
- name: Run build
working-directory: ./server
run: npm run build
- name: Running tests
working-directory: ./server
run: npm test
- name: Deploy to Heroku
uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: mintlify-backend
team: mintlify
heroku_email: han@mintlify.com
appdir: server