mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
33 lines
832 B
YAML
33 lines
832 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 16.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.13.0
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: demo
|
|
- name: Install dependencies
|
|
run: npm install --silent
|
|
- name: Build project
|
|
run: |
|
|
git config --global user.email "github-action@akveo.com"
|
|
git config --global user.name "Github Action"
|
|
npm run docs:gh-pages
|
|
- name: Deploy to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GH_PAT }}
|
|
publish_dir: ./docs/dist
|