mirror of
https://github.com/sebastianpopp/ftp-action.git
synced 2025-12-05 11:44:51 +01:00
Compare commits
No commits in common. "master" and "v1.1.0" have entirely different histories.
5 changed files with 5 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:3.11
|
||||
FROM alpine:3.10
|
||||
|
||||
COPY LICENSE README.md /
|
||||
|
||||
|
|
|
|||
2
LICENSE
2
LICENSE
|
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Sebastian Popp and contributors
|
||||
Copyright (c) 2019 Sebastian Popp
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
|||
|
|
@ -12,16 +12,15 @@ jobs:
|
|||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@master
|
||||
- name: Upload ftp
|
||||
uses: sebastianpopp/ftp-action@releases/v2
|
||||
uses: sebastianpopp/ftp-action@releases/v1
|
||||
with:
|
||||
host: ${{ secrets.FTP_SERVER }}
|
||||
user: ${{ secrets.FTP_USERNAME }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
localDir: "dist"
|
||||
remoteDir: "www"
|
||||
options: "--delete --asci"
|
||||
```
|
||||
|
||||
## Input parameters
|
||||
|
|
@ -33,5 +32,3 @@ user | FTP username | Yes | N/A
|
|||
password | FTP password | Yes | N/A
|
||||
localDir | The local directory to copy | No | .
|
||||
remoteDir | The remote directory to copy to | No | .
|
||||
forceSsl | Force SSL encryption | No | false
|
||||
options | Mirror command options | No | ''
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ inputs:
|
|||
password:
|
||||
description: 'FTP password'
|
||||
required: true
|
||||
forceSsl:
|
||||
description: 'Force SSL encryption'
|
||||
required: false
|
||||
default: 'false'
|
||||
localDir:
|
||||
description: 'Local directory'
|
||||
required: false
|
||||
|
|
@ -23,10 +19,6 @@ inputs:
|
|||
description: 'Remote directory'
|
||||
required: false
|
||||
default: '.'
|
||||
options:
|
||||
description: 'Additional mirror command options'
|
||||
required: false
|
||||
default: ''
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh -l
|
||||
|
||||
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror $INPUT_OPTIONS --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
|
||||
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue