You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,31 @@
2
2
3
3
A GitHub action to create [Deployments](https://developer.github.com/v3/repos/deployments/) as part of your GitHub CI workflows.
4
4
5
-
## Breaking changes
5
+
## Example usage
6
6
7
-
`v2` of this action removes the `target_url` input and replaces it with the `environment_url` and `log_url` inputs to match GitHub's API. `v2` also standardises on using `kebab-case` rather than `snake_case` for inputs to match GitHub's built-in actions.
7
+
```yaml
8
+
name: Deploy
9
+
10
+
on: [push]
11
+
12
+
jobs:
13
+
deploy:
14
+
name: Deploy my app
15
+
16
+
runs-on: ubuntu-latest
17
+
18
+
steps:
19
+
- uses: actions/checkout@v1
20
+
21
+
- uses: chrnorm/deployment-action@v2
22
+
name: Create GitHub deployment
23
+
id: deployment
24
+
with:
25
+
token: '${{ github.token }}'
26
+
environment-url: http://my-app-url.com
27
+
environment: production
28
+
# more steps below where you run your deployment scripts inside the same action
29
+
```
8
30
9
31
## Action inputs
10
32
@@ -33,34 +55,8 @@ A GitHub action to create [Deployments](https://developer.github.com/v3/repos/de
`v2` of this action removes the `target_url` input and replaces it with the `environment_url` and `log_url` inputs to match GitHub's API. `v2` also standardises on using `kebab-case` rather than `snake_case` for inputs to match GitHub's built-in actions.
0 commit comments