-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 964 Bytes
/
integration.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
38
39
40
name: Deploy
on:
push:
branches:
- main
schedule:
- cron: '0 3 * * *' # Every day at 3am
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout main branch
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: npm ci
- name: Build gatsby pages (james.lu)
run: npm run build
env:
MONGODB_CONN_STRING: ${{ secrets.MONGODB_CONN_STRING }}
- name: Move to web directory
run: rm -rf ~/personal-website/public; cp -r ./public ~/personal-website
- name: Build gatsby pages (jame.lu)
run: npm run build
env:
MONGODB_CONN_STRING: ${{ secrets.MONGODB_CONN_STRING }}
GATSBY_SINGULAR: 1
- name: Move to web directory
run: rm -rf ~/personal-website-s/public; cp -r ./public ~/personal-website-s