Skip to content

Merge pull request #445 from flucoma/content-donnarumma #581

Merge pull request #445 from flucoma/content-donnarumma

Merge pull request #445 from flucoma/content-donnarumma #581

Workflow file for this run

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@v4
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@v4
with:
node-version: 18
- 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/