mirror of
https://gitee.com/ineo6/homebrew-install.git
synced 2025-06-24 05:29:14 +08:00
30 lines
719 B
YAML
30 lines
719 B
YAML
name: Deploy
|
|
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: '10.x'
|
|
- name: Install npm dependencies
|
|
run: npm install
|
|
- name: Build
|
|
run: npm run build
|
|
- name: Deploy to Server
|
|
uses: burnett01/rsync-deployments@4.1
|
|
with:
|
|
switches: -avzr --delete
|
|
path: "dist/"
|
|
remote_path: ${{ secrets.REMOTE_TARGET }}
|
|
remote_host: ${{ secrets.REMOTE_HOST }}
|
|
remote_user: ${{ secrets.REMOTE_USER }}
|
|
remote_key: ${{ secrets.SERVER_SSH_KEY }}
|