From af2d86340e5df5fc0c951fe80b8642f4ec6b83d5 Mon Sep 17 00:00:00 2001 From: 0t4u <61939142+0t4u@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:54:34 +0100 Subject: [PATCH] feat: auto typedoc publishing --- .github/workflows/typedoc.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/typedoc.yml diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml new file mode 100644 index 00000000..e6e61765 --- /dev/null +++ b/.github/workflows/typedoc.yml @@ -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 +