mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
* feat(deploy): enable manual triggering * fix(deploy): use the default azure/CLI version * doc(deploy): update action trigger guid * feat(deploy): enable manual triggering for docs Co-authored-by: artem.zaiko.ext <artem.zaiko.ext@munichgeneral.com>
31 lines
667 B
YAML
31 lines
667 B
YAML
|
|
name: Deploy docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'demo'
|
|
paths:
|
|
- 'docs/**'
|
|
repository_dispatch:
|
|
types: deploy-docs
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Use Node.js 12.x
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '12'
|
|
- 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
|