Update main.yml #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
name: Deploy to InfinityFree | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install lftp | |
run: sudo apt-get update && sudo apt-get install -y lftp | |
- name: Deploy to InfinityFree | |
uses: SamKirkland/FTP-Deploy-Action@4.0.0 | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
server-dir: /htdocs/ | |
local-dir: ./ | |
- name: Trigger post-deployment script on server | |
run: curl -X POST https://${{ secrets.FTP_SERVER }}/install_dependencies.php |