Skip to content

Update main.yml

Update main.yml #10

Workflow file for this run

name: build and test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout respository
uses: actions/checkout@v2
- name: setup node.js
uses: actions/setup-node@v2
with:
node-version: '16.14'
- name: setup yarn
run: npm install -g yarn
- name: install depencies
run: yarn
- name: build
run: yarn build
- name: Copy Files 2 Server
uses: appleboy/scp-action@master
with:
host: ${{secrets.HOST}}
username: ${{secrets.USERNAME}}
password: ${{secrets.PASSWORD}}
port: 22
source: "./dist"
target: "/usr/web"