-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.08 KB
/
update-notion.js.yml
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
name: Notion Update CI
on:
push:
branches: ["development", "main", "feature/notion-db-automation"]
jobs:
build:
runs-on: ubuntu-latest
environment: "NOTION CI"
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
defaults:
run:
working-directory: ./scripts
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: |
touch .env.local
echo NOTION_INTEGRATION_SECRET=${{ secrets.NOTION_INTEGRATION_SECRET }} >> .env.local
echo NOTION_LEADS_DEVDB=${{ vars.NOTION_LEADS_DEVDB }} >> .env.local
echo NOTION_LEADS_PRODDB=${{ vars.NOTION_LEADS_DEVDB }} >> .env.local
- name: print variables
env:
VARS_JSON: ${{ toJson(vars) }}
run: echo "$VARS_JSON"
- run: npm run build --if-present
- run: npm run start