feat: ci 流程测试
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: runner
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://git.ailuowan.com/deploy/checkout@v4
|
||||
|
||||
- name: Install
|
||||
run: npm install --ignore-scripts
|
||||
|
||||
- name: Build
|
||||
run: npm run build:development
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
mkdir -p /data/www/beautifier-web
|
||||
rm -rf /data/www/beautifier-web/*
|
||||
cp -r dist/. /data/www/beautifier-web/
|
||||
Reference in New Issue
Block a user