Skip to content

update

update #112

Workflow file for this run

name: prod
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: "14.17.0"
- name: Install npm dependencies
run: npm install
- name: Run build task
run: npm run build
- name: copy file via ssh key
uses: appleboy/scp-action@master
with:
source: "web-openlayers/*"
host: ${{ secrets.HOST }}
target: "/usr/src/zhoubichuan/prod/"
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
- name: copy file via ssh key
uses: appleboy/scp-action@master
with:
source: "components/demo/*"
host: ${{ secrets.HOST }}
target: "/usr/src/zhoubichuan/prod/web-openlayers/"
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}