Merge pull request #32 from Fernando-Santana-j/development #125
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
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/[email protected] | |
- name: π Sync files to Production | |
if: github.ref == 'refs/heads/main' | |
uses: SamKirkland/[email protected] | |
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/[email protected] | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_DEVNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} |