Skip to content

Merge pull request #253 from elmadev/jm/level-cup-link #76

Merge pull request #253 from elmadev/jm/level-cup-link

Merge pull request #253 from elmadev/jm/level-cup-link #76

name: Build and Deploy test
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build project
run: yarn build
- name: Deploy to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "build/*"
target: "${{ secrets.SSH_BUILD_PATH }}"
strip_components: 1