Update nodejs.yml
This commit is contained in:
@@ -1,28 +1,18 @@
|
|||||||
name: Node.js CI
|
on: push
|
||||||
|
name: Publish Website Dry Run
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
FTP-Deploy-Action:
|
||||||
|
name: FTP-Deploy-Action
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [14.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.1.0
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
with:
|
||||||
uses: actions/setup-node@v1
|
fetch-depth: 2
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
- name: FTP-Deploy-Action
|
||||||
- run: npm install
|
uses: SamKirkland/FTP-Deploy-Action@3.1.1
|
||||||
- run: npm run build --if-present
|
with:
|
||||||
- name: FTP Deploy
|
ftp-server: ${{ secrets.ftp_server }}
|
||||||
uses: SamKirkland/FTP-Deploy-Action@3.1.1
|
ftp-username: ${{ secrets.ftp_user }}
|
||||||
with:
|
ftp-password: ${{ secrets.ftp_pwd }}
|
||||||
ftp-server: ${{ secrets.ftp_server }}
|
git-ftp-args: --dry-run
|
||||||
ftp-username: ${{ secrets.ftp_user }}
|
|
||||||
ftp-password: ${{ secrets.ftp_pwd }}
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user