Update nodejs.yml
This commit is contained in:
@@ -1,31 +1,26 @@
|
||||
on: push
|
||||
name: Build and Publish Front End Framework Website
|
||||
name: 🚀 Deploy website on push
|
||||
jobs:
|
||||
FTP-Deploy-Action:
|
||||
name: FTP-Deploy-Action
|
||||
web-deploy:
|
||||
name: 🎉 Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.1.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: 🚚 Get latest code
|
||||
uses: actions/checkout@v2.3.2
|
||||
|
||||
- name: Use Node.js 12.x
|
||||
uses: actions/setup-node@v1
|
||||
- name: Use Node.js 12
|
||||
uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: '12.x'
|
||||
node-version: '12'
|
||||
|
||||
- name: Build Project
|
||||
- name: 🔨 Build Project
|
||||
run: |
|
||||
npm install
|
||||
npm run build --if-present
|
||||
npm run build
|
||||
|
||||
- name: List output files
|
||||
run: ls
|
||||
|
||||
- name: FTP-Deploy-Action
|
||||
uses: SamKirkland/FTP-Deploy-Action@3.1.1
|
||||
- name: 📂 Sync files
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.0.0
|
||||
with:
|
||||
ftp-server: ${{ secrets.ftp_server }}
|
||||
ftp-username: ${{ secrets.ftp_user }}
|
||||
ftp-password: ${{ secrets.ftp_pwd }}
|
||||
local-dir: build # This folder is NOT going to upload by default unless you add it to .git-ftp-include
|
||||
server: ${{ secrets.ftp_server }}
|
||||
username: ${{ secrets.ftp_user }}
|
||||
password: ${{ secrets.ftp_pwd }}
|
||||
|
||||
Reference in New Issue
Block a user