Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

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