forked from SamKirkland/FTP-Deploy-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete rewrite! Switched from LFTP to git-ftp Upload diffs based on git history by default lower case kebab argument names Migrated from shell to typescript Added FTP and SFTP tests .git-ftp-ignore and .git-ftp-include support
- Loading branch information
1 parent
e62d32e
commit 4895f6f
Showing
19 changed files
with
6,602 additions
and
183 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: push | ||
name: Test FTP Deploy | ||
jobs: | ||
FTP-Deploy-Action: | ||
name: FTP-Deploy-Action | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 2 | ||
- name: FTP-Deploy-Action | ||
uses: SamKirkland/FTP-Deploy-Action-Typescript@master | ||
with: | ||
ftp-server: ftp://ftp.samkirkland.com/ | ||
ftp-username: ${{ secrets.ftp_username }} | ||
ftp-password: ${{ secrets.ftp_password }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
on: push | ||
name: Test SFTP Deploy | ||
jobs: | ||
FTP-Deploy-Action: | ||
name: FTP-Deploy-Action | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 2 | ||
- name: FTP-Deploy-Action | ||
uses: SamKirkland/FTP-Deploy-Action-Typescript@master | ||
with: | ||
# deploy to a folder named "sftp-deploy-test.samkirkland.com" on my server | ||
ftp-server: sftp://ftp.samkirkland.com:7822/home/samkirkland/sftp-deploy-test.samkirkland.com/ | ||
ftp-username: ${{ secrets.sftp_username }} | ||
ftp-password: ${{ secrets.sftp_password }} | ||
git-ftp-args: --insecure |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
__tests__/runner/* | ||
|
||
# comment out in distribution branches | ||
node_modules/ | ||
|
||
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.exclude": { | ||
"**/node_modules": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
FROM alpine:3.10 | ||
FROM debian:stable-slim | ||
|
||
LABEL version="1.0.0" | ||
LABEL repository="https://github.com/SamKirkland/FTP-Deploy-Action" | ||
LABEL homepage="https://github.com/SamKirkland/FTP-Deploy-Action" | ||
LABEL maintainer="Sam Kirkland <FTP-Deploy-Action@samkirkland.com>" | ||
|
||
LABEL "com.github.actions.name"="FTP Deploy Action" | ||
LABEL "com.github.actions.description"="Deploy your website via FTP" | ||
LABEL "com.github.actions.icon"="upload-cloud" | ||
LABEL "com.github.actions.color"="orange" | ||
RUN apt-get update | ||
RUN apt-get install -y git | ||
RUN apt-get install -y git-ftp | ||
RUN apt-get install -y nodejs | ||
|
||
RUN apk update | ||
RUN apk add openssh sshpass lftp | ||
COPY dist/index.js /deploy.js | ||
RUN chmod +x deploy.js | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod 777 entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
ENTRYPOINT ["node", "../../deploy.js"] |
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
Oops, something went wrong.