Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Update

Update #35

Workflow file for this run

name: TypeDoc
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Demo'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install packages
run: npm install
- name: Generate TypeDoc
run: npm run doc
- name: Git commit report
run: |
RUNTIME_DIR=runtime
shopt -s dotglob
mkdir $RUNTIME_DIR
mkdir $RUNTIME_DIR/docs
mv -f target/doc/* ./$RUNTIME_DIR/docs
# Git commit
git config --global user.name 'hydroperfox'
git config --global user.email '[email protected]'
git switch -C ghpages
for entry in "$(pwd)"/*
do
base_name=$(basename "$entry")
if [[ "$base_name" != "$RUNTIME_DIR" && "$base_name" != ".git" ]]; then
rm -rf "$entry"
fi
done
git add .
git commit -m "Automated report"
git push origin -f ghpages