Skip to content

Commit

Permalink
hooked up additional props
Browse files Browse the repository at this point in the history
added npm badges
Updated readme
  • Loading branch information
SamKirkland committed Aug 28, 2020
1 parent 64fd8ab commit afd59ed
Show file tree
Hide file tree
Showing 6 changed files with 5,310 additions and 5,154 deletions.
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ A clear and concise description of what the bug is.

**My Action Config**
```yaml
on:
push:
on: push
name: Publish Website
jobs:
web-deploy:
name: 🚀 Deploy website every commit
# !!!!!!! TODO Fill Out !!!!!!!
```

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
deploy: # make sure the action works on a clean machine without building
deploy:
name: 🚀 Deploy website every commit
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ftps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
deploy: # make sure the action works on a clean machine without building
deploy:
name: 🚀 Deploy website every commit
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 16 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ Automate deploying websites and more with this GitHub action
![FTP test](https://github.com/SamKirkland/FTP-Deploy-Action/workflows/FTP%20Test/badge.svg)
![FTPS test](https://github.com/SamKirkland/FTP-Deploy-Action/workflows/FTPS%20Test/badge.svg)

![npm](https://img.shields.io/npm/v/@samkirkland/ftp-deploy?style=flat-square)
![npm](https://img.shields.io/npm/dt/@samkirkland/ftp-deploy)

---

### Usage Example
Place the following in `/.github/workflows/main.yml`
```yml
on: push
name: Publish Website
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🚀 Deploy website every commit
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
Expand Down Expand Up @@ -66,10 +69,10 @@ I strongly recommend you store your `password` as a secret.
| `local-dir` | No | `./myFolderToPublish/` | `./` | Path to upload to on the server, must end with trailing slash `/` |
| `server-dir` | No | `public_html/www/` | `./` | Folder to upload from, must end with trailing slash `/` |
| `state-name` | No | `folder/.sync-state.json` | `.ftp-deploy-sync-state.json` | Custom |
| `dry-run` | No | `true` | `false` | :warning: todo - Prints which modifications will be made with current config options, but doesn't actually make any changes |
| `dangerous-clean-slate` | No | `true` | `false` | :warning: todo - Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument |
| `include` | No | | `` | :warning: todo - An array of glob patterns, these files will always be included in the publish/delete process - even if no change occurred |
| `exclude` | No | | `.git*` `.git*/**` `node_modules/**` `node_modules/**/*` | :warning: todo - An array of glob patterns, these files will not be included in the publish/delete process |
| `dry-run` | No | `true` | `false` | Prints which modifications will be made with current config options, but doesn't actually make any changes |
| `dangerous-clean-slate` | No | `true` | `false` | Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument |
| `include` | No | | `` | :warning: not implemented yet - An array of glob patterns, these files will always be included in the publish/delete process - even if no change occurred |
| `exclude` | No | | `.git*` `.git*/**` `node_modules/**` `node_modules/**/*` | An array of glob patterns, these files will not be included in the publish/delete process |
| `log-level` | No | `info` | `info` | `warn`: only important/warning info, `info`: default, log important/warning info & progress info, `debug`: log everything for debugging |


Expand All @@ -79,10 +82,10 @@ Make sure you have an npm script named 'build'. This config should work for most

```yml
on: push
name: Publish Website
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🚀 Deploy website every commit
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
Expand All @@ -109,10 +112,10 @@ jobs:
#### FTPS
```yml
on: push
name: Publish Website Dry Run
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🚀 Deploy website every commit
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
Expand All @@ -125,16 +128,17 @@ jobs:
username: myFtpUserName
password: ${{ secrets.password }}
protocol: ftps
port: 1234 # todo replace with your web hosts ftps port
```

#### Log only dry run: Use this mode for testing
Ouputs a list of files that will be created/modified to sync your source without making any actual changes
```yml
on: push
name: Publish Website Dry Run
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🚀 Deploy website every commit
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
Expand Down
Loading

0 comments on commit afd59ed

Please sign in to comment.