Last active
October 1, 2020 03:51
-
-
Save ksk1015/22d7acab15f43f2bba25e69c2c88d71d to your computer and use it in GitHub Desktop.
Github actions FTP deploy
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
# [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