Skip to content

Merge pull request #3 from cryptoalgebra/dev #21

Merge pull request #3 from cryptoalgebra/dev

Merge pull request #3 from cryptoalgebra/dev #21

Workflow file for this run

name: Algebra Integral Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: CI=false yarn build
#setup key
- run: set -eu
- run: mkdir "$HOME/.ssh"
- run: echo "${{ secrets.SHHKEYM }}" > "$HOME/.ssh/SHHKEYM"
- run: chmod 600 "$HOME/.ssh/SHHKEYM"
#deploy
- run: cd dist && rsync -e "ssh -i $HOME/.ssh/SHHKEYM -o StrictHostKeyChecking=no" -a --compress --delete . ${{ secrets.DEPLOYMENT_PATH }}