Skip to content

feat: add function calling token counting (#83) #8

feat: add function calling token counting (#83)

feat: add function calling token counting (#83) #8

Workflow file for this run

name: Deploy Demo
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
name: Build demo
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: yarn
cache-dependency-path: |
**/package.json
yarn.lock
# - name: Enable Corepack
# run: corepack enable
# - name: Install root dependencies
# run: yarn install --immutable
# - name: Build gpt-tokenizer package
# run: yarn build
- name: Install demo dependencies
working-directory: demo
run: npm ci
- name: Link local gpt-tokenizer build
working-directory: demo
run: npm install --no-save
# - name: Set deployment base path
# run: echo "VITE_BASE_PATH=/${GITHUB_REPOSITORY#*/}/" >> "$GITHUB_ENV"
- name: Build demo site
working-directory: demo
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: demo/dist
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4