mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-21 21:40:49 +02:00
chore: add docs deploy script (#5682)
Co-authored-by: Maksim Karatkevich <m.karatkevich@akveo.com>
This commit is contained in:
parent
a48cb2b0bf
commit
ef650ae1cf
3 changed files with 30 additions and 4 deletions
9
.github/workflows/ACTION_TRIGGER_GUIDE.md
vendored
9
.github/workflows/ACTION_TRIGGER_GUIDE.md
vendored
|
@ -1,12 +1,13 @@
|
||||||
### Actions deploy guide
|
### Actions deploy guide
|
||||||
|
|
||||||
In order to trigger `deploy-to-demo` action you should execute the following curl:
|
In order to trigger workflow action you should execute the following curl:
|
||||||
|
|
||||||
`curl -H "Accept: application/vnd.github.everest-preview+json" \`
|
`curl -H "Accept: application/vnd.github.everest-preview+json" \`
|
||||||
`-H "Authorization: token <ACCESS_TOKEN>" \`
|
`-H "Authorization: token <ACCESS_TOKEN>" \`
|
||||||
`--request POST \`
|
`--request POST \`
|
||||||
`--data '{"event_type": "deploy-to-demo"}' \`
|
`--data '{"event_type": "<ACTION>"}' \`
|
||||||
`https://api.github.com/repos/akveo/ngx-admin/dispatches`
|
`https://api.github.com/repos/akveo/ngx-admin/dispatches`
|
||||||
|
|
||||||
This curl expects `ACCESS_TOKEN` input parameter
|
This curl expects two input parameters:
|
||||||
<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)
|
- `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)
|
||||||
|
- `ACTION`: action to trigger ('deploy-docs', 'deploy-to-demo')
|
||||||
|
|
5
.github/workflows/demoDeploy.yml
vendored
5
.github/workflows/demoDeploy.yml
vendored
|
@ -2,6 +2,11 @@
|
||||||
name: Deploy to demo
|
name: Deploy to demo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'demo'
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: deploy-to-demo
|
types: deploy-to-demo
|
||||||
|
|
||||||
|
|
20
.github/workflows/docsDeploy.yml
vendored
Normal file
20
.github/workflows/docsDeploy.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
name: Deploy docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'demo'
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
repository_dispatch:
|
||||||
|
types: deploy-docs
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Use Node.js 12.x
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run docs:gh-pages
|
Loading…
Add table
Add a link
Reference in a new issue