chuyaoyuan

提交
This commit is contained in:
2021-04-26 00:20:37 +08:00
parent 6aa76e5340
commit 898f189c67
2 changed files with 30 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
!build/
+29
View File
@@ -0,0 +1,29 @@
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@3.0.0
with:
ftp-server: 你的虚拟主机 FTP 上传地址/ftp 目录
ftp-username: ${{ secrets.ftp_user }}
ftp-password: ${{ secrets.ftp_pwd }}
local-dir: build/
env:
CI: true