Merge pull request #159 from MediasBranschdag/master #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Production | |
on: | |
push: | |
branches: [ production ] | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
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 | |
env: | |
CI: false | |
- name: List output files | |
run: ls | |
- name: FTP-Deploy-Action | |
uses: SamKirkland/FTP-Deploy-Action@3.0.0 | |
with: | |
ftp-server: ftp://ftp.mediasbranschdag.com/ | |
ftp-username: 166397_bransch | |
ftp-password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: build |