Skip to content

git-ftp-action

Actions
Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server
3.0.0
Latest
Star (43)

git-ftp-action

Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server.

⚠️ Attention: Make sure to use actions/checkout with fetch-depth: 0, since git-ftp needs the whole history in order to work.

Example usage

name: Deploy via git-ftp
on: push
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: 0
    - name: git-ftp push
      uses: sebastianpopp/git-ftp-action@releases/v3
      with:
        url: "ftp://ftp.example.com/path/"
        user: ${{ secrets.FTP_USER }}
        password: ${{ secrets.FTP_PWD }}

Input parameters

Input parameter Description Required Default
url git-ftp url (see documentation) Yes N/A
user FTP username Yes N/A
password FTP password Yes N/A
syncroot Specifies a local directory to sync from as if it were the git project root path. No .
options Additional options (see documentation) No --auto-init

git-ftp-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server
3.0.0
Latest

git-ftp-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.