-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 879 Bytes
/
main.yml
File metadata and controls
35 lines (30 loc) · 879 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
name: Continuous Deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: self-hosted
environment: .env
steps:
- name: Checkout main branch
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Clear npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci --no-audit --no-fund
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Create env file
run: |
touch .env
echo NOTION_TOKEN=${{ secrets.NOTION_TOKEN }} >> .env
cat .env
- name: Copy Orienting Directory
run: rsync -a --delete orienting.sfpc.study/ /var/www/orienting.sfpc.study/html/