Fix Resize Window #4
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
# git ftp init -u "${{ vars.PRODUCTION_FTP_USERNAME }}" -p "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" | |
# git ftp push --force -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" | |
# git ftp push -vv --auto-init --insecure --changed-only -f -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" | |
name: FTP Deploy Source Code | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
main: | |
name: Deploy to Production | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: 📂 NPM Install and Build | |
run: | | |
npm install | |
npm run build | |
- name: 📂 Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp.misterprada.com | |
local-dir: ./dist/ | |
server-dir: /christmas.misterprada.com/ | |
username: ${{ vars.PRODUCTION_FTP_USERNAME }} | |
password: ${{ secrets.PRODUCTION_FTP_PASSWORD }} |