Skip to content

Update documentation #25

Update documentation

Update documentation #25

Workflow file for this run

name: Update documentation
on:
workflow_run:
workflows: ["Publish release"]
branches:
- main
types:
- completed
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies
run: npm ci
- name: Build documentation
run: |
npm run build
cp dist/design-angular-kit-bundle/browser/index.html dist/design-angular-kit-bundle/browser/404.html
- name: Publish on gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run documentation-deploy-to-gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}