mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 00:40:12 +01:00
action trigger guide added
This commit is contained in:
parent
33d50c55ea
commit
31d3a1dd2a
2 changed files with 13 additions and 1 deletions
12
.github/workflows/ACTION_TRIGGER_GUIDE.md
vendored
Normal file
12
.github/workflows/ACTION_TRIGGER_GUIDE.md
vendored
Normal 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)
|
||||||
2
.github/workflows/demoDeploy.yml
vendored
2
.github/workflows/demoDeploy.yml
vendored
|
|
@ -21,4 +21,4 @@ jobs:
|
||||||
ref: demo
|
ref: demo
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build:prod
|
- run: npm run build:prod
|
||||||
- run: rsync -r dist/. "${{ secrets.ADDRESS }}":~/views/admin/ngx-demo/dist
|
- run: rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue