Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyliber authored Aug 17, 2019
1 parent b724ca2 commit 887348d
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,32 @@ This action will deploy the master brunch to your Dokku server via SSH.

## Usage

To use the action simply add the following lines to your `.github/main.workflow`
To use the action simply add the following lines to your `.github/workflows/main.yml`

```
action "Run deploy script" {
uses = "vitalyliber/dokku-github-action@master"
env = {
HOST = "casply.com",
PROJECT = "kawaii",
}
secrets = [
"PRIVATE_KEY",
"PUBLIC_KEY",
]
}
name: CD
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Dokku deploy
uses: vitalyliber/dokku-github-action@master
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
HOST: casply.com
PROJECT: kawaii
```

#### Examples

* ```args = "/opt/deploy/run"```
* ```args = "touch ~/.reload"```

### Required Secrets

You'll need to provide some secrets to use the action.
Expand Down

0 comments on commit 887348d

Please sign in to comment.