Update nodejs.yml
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
on: push
|
on: push
|
||||||
name: Publish Website Dry Run
|
name: Build and Publish Front End Framework Website
|
||||||
jobs:
|
jobs:
|
||||||
FTP-Deploy-Action:
|
FTP-Deploy-Action:
|
||||||
name: FTP-Deploy-Action
|
name: FTP-Deploy-Action
|
||||||
@@ -9,10 +9,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
|
- name: Use Node.js 12.x
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build --if-present
|
||||||
|
|
||||||
|
- name: List output files
|
||||||
|
run: ls
|
||||||
|
|
||||||
- name: FTP-Deploy-Action
|
- name: FTP-Deploy-Action
|
||||||
uses: SamKirkland/FTP-Deploy-Action@3.1.1
|
uses: SamKirkland/FTP-Deploy-Action@3.1.1
|
||||||
with:
|
with:
|
||||||
ftp-server: ${{ secrets.ftp_server }}
|
ftp-server: ${{ secrets.ftp_server }}
|
||||||
ftp-username: ${{ secrets.ftp_user }}
|
ftp-username: ${{ secrets.ftp_user }}
|
||||||
ftp-password: ${{ secrets.ftp_pwd }}
|
ftp-password: ${{ secrets.ftp_pwd }}
|
||||||
git-ftp-args: --dry-run
|
local-dir: build # This folder is NOT going to upload by default unless you add it to .git-ftp-include
|
||||||
|
|||||||
Reference in New Issue
Block a user