Skip to content

feat(ci): Add analytics vars to ENV #16

feat(ci): Add analytics vars to ENV

feat(ci): Add analytics vars to ENV #16

# https://github.com/TypeStrong/typedoc/issues/1485#issuecomment-889376169
name: Typedoc Deploy
on: [push, pull_request]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Create the docs directory locally in CI
env:
ANALYTICS: ${{ vars.ANALYTICS }}
ANALYTICS_DOMAIN: ${{ vars.ANALYTICS_DOMAIN }}
run: npm run typedoc
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs