Skip to content

Instantly share code, notes, and snippets.

@ksk1015
Last active October 1, 2020 03:51
Show Gist options
  • Save ksk1015/22d7acab15f43f2bba25e69c2c88d71d to your computer and use it in GitHub Desktop.
Save ksk1015/22d7acab15f43f2bba25e69c2c88d71d to your computer and use it in GitHub Desktop.
Github actions FTP deploy
# [email protected] だとなぜか
# /usr/bin/git ftp push --force --auto-init --verbose --syncroot=./ --user=*** --passwd=*** --remote-root *** ***
# fatal: Unrecognised option: ***
# 差分のみアップロードするとのことだが、全部アップロードしてた
name: FTP deploy
on:
push:
branches:
- master
jobs:
ftp-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
with:
local-dir: ./
ftp-server: ${{ secrets.FTP_SERVER }}
ftp-username: ${{ secrets.FTP_USERNAME }}
ftp-password: ${{ secrets.FTP_PASSWORD }}
git-ftp-args: --remote-root ${{ secrets.FTP_REMOTE_ROOT }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment