mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-25 03:40:13 +01:00
chore: deploy actions (#5690)
Co-authored-by: Maksim Karatkevich <m.karatkevich@akveo.com>
This commit is contained in:
parent
e02e2bd937
commit
2f9ce78488
3 changed files with 71 additions and 0 deletions
29
.github/workflows/docsDeploy.yml
vendored
Normal file
29
.github/workflows/docsDeploy.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
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
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: demo
|
||||
- name: Deploy
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: |
|
||||
npm install --silent
|
||||
git config --global user.email "github-action@akveo.com"
|
||||
git config --global user.name "Github Action"
|
||||
npm run docs:gh-pages
|
||||
Loading…
Add table
Add a link
Reference in a new issue