Merge pull request #229 from bartvanderwal/patch-1 #60
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: 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 }}' |