Skip to content

Publish

Publish #497

Workflow file for this run

name: Publish
on:
push:
branches:
- master
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
workflow_call:
jobs:
publish-site:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18.17"
- name: Install
run: npm ci
- name: Rebuild /api
run: |
git clone https://github.com/TypeStrong/typedoc.git
cd typedoc
git checkout $(git describe --tags --abbrev=0)
npm ci
node scripts/set_strict.js false
npm run build
node bin/typedoc --options ../typedoc.json --gitRevision $(git describe --tags --abbrev=0)
cd ..
- name: Rebuild /example
run: |
cd typedoc/example
npm ci
node ../bin/typedoc --options ../../example.typedoc.json --gitRevision $(git describe --tags --abbrev=0)
cd ../..
- name: Rebuild schema.json
run: |
cd typedoc
node scripts/generate_options_schema.js ../_site/schema.json
cd ..
- name: Rebuild markdown site
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: _site
git-config-name: QubitPi
git-config-email: jack20220723@gmail.com