Skip to content

Update documentation #10

Update documentation

Update documentation #10

Workflow file for this run

name: Update documentation
on:
workflow_run:
workflows: ["Publish release"]
branches:
# - main
- prerelease
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- 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/index.html dist/design-angular-kit-bundle/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 }}