Update nodejs.yml

This commit is contained in:
2021-04-26 11:38:17 +08:00
committed by GitHub
parent 9f1b491e3e
commit 6fd67821d3
+15 -25
View File
@@ -1,28 +1,18 @@
name: Node.js CI
on: [push]
on: push
name: Publish Website Dry Run
jobs:
build:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.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.1.1
with:
ftp-server: ${{ secrets.ftp_server }}
ftp-username: ${{ secrets.ftp_user }}
ftp-password: ${{ secrets.ftp_pwd }}
env:
CI: true
- uses: actions/checkout@v2.1.0
with:
fetch-depth: 2
- name: FTP-Deploy-Action
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: ${{ secrets.ftp_server }}
ftp-username: ${{ secrets.ftp_user }}
ftp-password: ${{ secrets.ftp_pwd }}
git-ftp-args: --dry-run