8 Commits
v1 ... v3

Author SHA1 Message Date
66381d7312 remove things 2025-02-19 14:22:34 +01:00
801a36fe2d merge README 2025-02-19 14:20:59 +01:00
8aacb87d31 update README version 2025-02-19 14:19:52 +01:00
3b39e2875a add -p flag to mkdir command 2025-02-19 14:17:30 +01:00
c2546a80a3 update version for release 2025-02-19 14:01:06 +01:00
fe9e1db42e whitespace cleanup 2025-02-19 13:56:22 +01:00
1aa3969490 Update action.yml 2025-02-19 13:55:07 +01:00
2c72939043 Update action.yml 2025-02-19 13:53:53 +01:00
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ This is a composite Gitea Action (Linux runner) for deploying repository content
with: with:
fetch-depth: 0 fetch-depth: 0
- name: "Deploy" - name: "Deploy"
uses: https://code.klank.school/riviera/actions-file-deployer@v1 uses: https://code.klank.school/riviera/actions-file-deployer@v3
with: with:
remote-protocol: "sftp" remote-protocol: "sftp"
remote-host: "ftp.example.com" remote-host: "ftp.example.com"
@ -65,7 +65,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: "Deploy" - name: "Deploy"
uses: https://code.klank.school/riviera/actions-file-deployer@v1 uses: https://code.klank.school/riviera/actions-file-deployer@v3
with: with:
remote-protocol: "sftp" remote-protocol: "sftp"
remote-host: "ftp.example.com" remote-host: "ftp.example.com"

View File

@ -3,7 +3,7 @@ name: "FTP/SFTP file deployer"
description: "Fast and customizable deployment with parallel connections and proxy support. Deploy only changed files or do full sync." description: "Fast and customizable deployment with parallel connections and proxy support. Deploy only changed files or do full sync."
branding: branding:
icon: "upload" icon: "upload"
color: "black" color: "black"
inputs: inputs:
@ -198,7 +198,7 @@ runs:
echo "::group::Configurations" echo "::group::Configurations"
config_ssh=~/.ssh/config config_ssh=~/.ssh/config
mkdir ~/.ssh && echo -e "ExitOnForwardFailure=yes\nStrictHostKeyChecking=no" > ${config_ssh} && chmod 600 ${config_ssh} && echo "File created: ${config_ssh}" mkdir -p ~/.ssh && echo -e "ExitOnForwardFailure=yes\nStrictHostKeyChecking=no" > ${config_ssh} && chmod 600 ${config_ssh} && echo "File created: ${config_ssh}"
[ "${{inputs.debug}}" == "true" ] && cat ${config_ssh} [ "${{inputs.debug}}" == "true" ] && cat ${config_ssh}
show_hr show_hr
@ -312,7 +312,7 @@ runs:
echo "::error::Commit history not found for delta synchronization. Please ensure you have 'fetch-depth: 0' option in checkout action. Please ignore if this is an initial commit or newly created branch." echo "::error::Commit history not found for delta synchronization. Please ensure you have 'fetch-depth: 0' option in checkout action. Please ignore if this is an initial commit or newly created branch."
exit 1 exit 1
fi fi
domain="code.klank.school" domain="code.klank.school"
echo "Previous Revision: https://${domain}/${{gitea.repository}}/commit/${git_previous_commit}" && show_hr echo "Previous Revision: https://${domain}/${{gitea.repository}}/commit/${git_previous_commit}" && show_hr
# ${proxy_cmd} lftp -c "set log:enabled/xfer false; get -O ~ \"${remote_path_slash}.deploy-revision\"; exit 0" # ${proxy_cmd} lftp -c "set log:enabled/xfer false; get -O ~ \"${remote_path_slash}.deploy-revision\"; exit 0"