更新四层负载均衡内容 #1829
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build app and deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: use Node.js 20.0.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install and Build | |
run: | | |
npm cache clean --force | |
npm install | |
npm run build | |
# 部署到阿里云 | |
- name: Deploy to Aliyun | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
ARGS: "-rlgoDzvc -i" | |
SOURCE: ".vuepress/dist/" | |
REMOTE_HOST: "110.40.229.45" | |
REMOTE_USER: "root" | |
TARGET: "/home/www/thebyte.com.cn" | |
SCRIPT_BEFORE: | | |
whoami | |
ls -al |