Skip to content

Commit

Permalink
Improve Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideViolante committed May 31, 2022
1 parent 191eec0 commit 2789335
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,35 @@ jobs:
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
```

## Serverless v1.x
Change `serverless/github-action@master` to `serverless/github-action@v1`
## Usage with serverless plugins
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/28), thanks to @matthewpoer:
```yaml
- name: Install Plugin and Deploy
uses: serverless/github-action@v3
with:
args: -c "serverless plugin install --name <plugin-name> && serverless deploy"
entrypoint: /bin/sh
```
## Fix "This command can only be run in a Serverless service directory" error
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/53#issuecomment-1059839383), thanks to @nikhuber:
```yaml
- name: Enter dir and deploy
uses: serverless/github-action@v3
with:
args: -c "cd ./<your-dir> && serverless deploy"
entrypoint: /bin/sh
```
## Serverless v2.x
Change `serverless/github-action@master` to `serverless/github-action@v2`
## Usage with plugins
See example in [this issue](https://github.com/serverless/github-action/issues/28)
## Use serverless v1 or v2
Change the action with one of the following:
```yaml
uses: serverless/github-action@v1
```
```yaml
uses: serverless/github-action@v2
```
## License
Expand Down

0 comments on commit 2789335

Please sign in to comment.