chore: deploy demo action

* create deploy demo script
* action trigger guide added
This commit is contained in:
maksim-karatkevich 2020-05-14 15:28:52 +03:00 committed by GitHub
parent 9eaf0bb005
commit 7b84933f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,12 @@
### Actions deploy guide
In order to trigger `deploy-to-demo` action you should execute the following curl:
`curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token <ACCESS_TOKEN>" \
--request POST \
--data '{"event_type": "deploy-to-demo"}' \
https://api.github.com/repos/akveo/ngx-admin/dispatches`
This curl expects `ACCESS_TOKEN` input parameter
<br>`ACCESS_TOKEN`: A personal access token. Creating a [personal access token guide](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)