build: reverted back to commit #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Documentation | |
on: | |
push: | |
branches: | |
- 3.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install packages | |
run: npm install | |
- name: Install typescript | |
run: npm install -g typescript | |
- name: Build Typescripts | |
run: npm run compile | |
- name: Build Typedoc | |
run: npm run typedoc | |
- name: Build example markdown | |
run: node scripts/generateExample.mjs | |
- name: Add TOC | |
run: (cd docs && npx markdown-index . > toc.md) | |
- name: Upload Documentation to Wiki | |
uses: SwiftDocOrg/github-wiki-publish-action@v1 | |
with: | |
path: "docs" | |
env: | |
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_WIKI_PERSONAL_ACCESS_TOKEN }} |