Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Oct 3, 2023
1 parent 846eacc commit c17a429
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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

- 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 }}

0 comments on commit c17a429

Please sign in to comment.