-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (43 loc) · 1.47 KB
/
deploy.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: deploy
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'placeholder'
- name: Adding Known Hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.DO_IP }} >> ~/.ssh/known_hosts
- uses: actions/setup-node@v3
with:
node-version: 19
- name: install pnpm
run: npm i -g pnpm
- name: Install Dependencies
run: pnpm i
- name: Run Tests
run: pnpm run test
- name: Build Site
run: pnpm run build
- name: Merge MFCC Widget
run: |
git clone https://github.com/flucoma/MFCC-interactive-widget.git mfccwidget
mkdir -p ./build/reference/mfcc/explain
cp -r mfccwidget/p5/* build/reference/mfcc/explain/
- name: Upload To Droplet
run: |
rsync -avz --delete --no-times --no-o --no-g --no-perms ./build/ james@${{ secrets.DO_IP }}:/home/learn/www/