Skip to content

Merge pull request #229 from bartvanderwal/patch-1 #60

Merge pull request #229 from bartvanderwal/patch-1

Merge pull request #229 from bartvanderwal/patch-1 #60

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/rsync-deployments@5.2.1
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 }}'