Skip to content

fix: 修复 github action 未替换变量问题 #7

fix: 修复 github action 未替换变量问题

fix: 修复 github action 未替换变量问题 #7

Workflow file for this run

name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: '20'
- name: Install npm dependencies
run: npm install
- name: Run build task
env:
VITE_KEY: ${{ secrets.VITE_KEY }}
run: npm run build --if-present
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rlgoDzvc -i'
SOURCE: 'package.json build/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: '/build/, /node_modules/'