Skip to content

Merge pull request #230 from bartvanderwal/patch-2 #66

Merge pull request #230 from bartvanderwal/patch-2

Merge pull request #230 from bartvanderwal/patch-2 #66

Workflow file for this run

name: Publish build to SFTP server
'on':
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: 🤌 Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: 📂 Build Project
run: |
npm install
npm run build
- name: 🚀 Deploy
uses: burnett01/[email protected]
with:
switches: '-avzr --delete'
path: build/
remote_path: '${{ secrets.FTP_SERVER_PATH }}'
remote_host: '${{ secrets.FTP_HOST }}'
remote_port: '${{ secrets.FTP_PORT }}'
remote_user: '${{ secrets.FTP_USER }}'
remote_key: '${{ secrets.FTP_SSH_PRIVATE }}'
remote_key_pass: '${{ secrets.FTP_SSH_PRIVATE_PHRASE }}'