Skip to content

Workflow file for this run

on:
push:
branches:
- main
- development
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2.3.2
- name: πŸ“‚ Sync files to Production
if: github.ref == 'refs/heads/main'
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_NAME }}
password: ${{ secrets.FTP_PASSWORD }}
- name: πŸ“‚ Sync files to Development
if: github.ref == 'refs/heads/development'
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_DEVNAME }}
password: ${{ secrets.FTP_PASSWORD }}