(swap) Change default pool #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Algebra Integral Deploy | |
on: | |
push: | |
branches: | |
jobs: | |
deploy: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up node | |
uses: actions/setup-node@v2 | |
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 public && rsync -e "ssh -i $HOME/.ssh/SHHKEYM -o StrictHostKeyChecking=no" -a --compress --delete . [email protected]:/var/www/integral-algebra-finance/ |