Deploy map to prod #144
This file contains hidden or 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: Deploy map to prod | |
| on: [workflow_dispatch] | |
| jobs: | |
| deploy_prod: | |
| if: github.repository_owner == 'ParkingReformNetwork' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Copy from staging to production | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.PRN_FTP_HOST }} | |
| username: ${{ secrets.PRN_SERVER_USERNAME }} | |
| key: ${{ secrets.PRN_SERVER_PRIVATE_KEY }} | |
| script: | | |
| # We do not use `--delete` to avoid deleting subfolders. | |
| rsync --archive --verbose --no-times \ | |
| /var/www/${{ secrets.PRN_SERVER_HOST }}/mandates-map-staging/ \ | |
| /var/www/${{ secrets.PRN_SERVER_HOST }}/mandates-map/ |