Skip to content

🐛 修复正式 socket 连接不成功的问题 #6

🐛 修复正式 socket 连接不成功的问题

🐛 修复正式 socket 连接不成功的问题 #6

# 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 and Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Node Version Change ➕
uses: actions/setup-node@v3
with:
node-version: 16
- name: Use Pnpm ➕
uses: pnpm/action-setup@v2
with:
version: 6
run_install: false
- name: Install and Build 🔧
run: |
pnpm i
pnpm build
# Deploy
- name: Deploy
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
ARGS: "-avz --delete"
SOURCE: "build/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.TARGET }}
SCRIPT_BEFORE: |
whoami
ls -al
SCRIPT_AFTER: |
whoami
ls -al
echo $RSYNC_STDOUT