Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastianpopp/git-ftp-action
Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server.
https://github.com/sebastianpopp/git-ftp-action
deploy ftp git git-ftp github-actions
Last synced: 30 days ago
JSON representation
Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server.
- Host: GitHub
- URL: https://github.com/sebastianpopp/git-ftp-action
- Owner: sebastianpopp
- License: mit
- Created: 2019-04-02T20:38:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T14:05:54.000Z (about 2 years ago)
- Last Synced: 2024-11-13T20:04:03.624Z (about 2 months ago)
- Topics: deploy, ftp, git, git-ftp, github-actions
- Language: Dockerfile
- Homepage: https://github.com/marketplace/actions/git-ftp-action
- Size: 13.7 KB
- Stars: 42
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-ftp-action
Uses [git-ftp](https://github.com/git-ftp/git-ftp) and [GitHub actions](https://github.com/features/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](https://github.com/git-ftp/git-ftp/blob/1.6.0/man/git-ftp.1.md#url)) | 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](https://github.com/git-ftp/git-ftp/blob/1.6.0/man/git-ftp.1.md#options)) | No | `--auto-init`