-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.01 KB
/
deploy.yaml
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
name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Production
url: https://berkeley.mt/
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install node dependencies
run: npm install
- name: Install zola
run: >
wget -q -O -
"https://github.com/getzola/zola/releases/download/v0.17.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz"
| tar xzf - -C /usr/local/bin
- name: Build site
run: npm run build
- name: Deploy
uses: burnett01/[email protected]
with:
switches: -avPh --delete
path: public/
remote_path: ~/public_html/new
remote_host: tsunami.ocf.berkeley.edu
remote_user: bmt
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}