Skip to content

Commit

Permalink
feat: auto typedoc publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Sep 20, 2024
1 parent 393681c commit af2d863
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish TypeDoc
on:
push:
branches:
- master

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest

- name: Install deps
run: npm i

- name: Build docs
run: npm run build:docs

- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/

deploy-docs:
needs: build-docs

permissions:
id-token: write
pages: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit af2d863

Please sign in to comment.