Skip to content

chore: 实现 dark 模式 #18

chore: 实现 dark 模式

chore: 实现 dark 模式 #18

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: Generate .env file
run: |
echo "VITE_KEY=${{ secrets.VITE_KEY }}" | iconv -t utf-8 > .env
- name: Run build task
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 --delete'
SOURCE: 'package.json build/ .env'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: '/build/, /node_modules/'