Files
Message-Push-Nest/web/.github/workflows/nodejs.yml
T

31 lines
885 B
YAML

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: build-api-front-output
on:
workflow_dispatch:
push:
branches: [ "api-front" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- run: npm install
- run: npm run build
- name: Upload files to server
uses: appleboy/scp-action@master
with:
host: 'nd2.ex.engigu.cn'
username: 'root'
password: ${{ secrets.ND2PWD }}
source: './dist'
target: '/root/workspace/ngproxy/data/pages/api-front'