Skip to content

Merge branch 'main' of github.com:AgoraIO/agora-iot-callkit-web #11

Merge branch 'main' of github.com:AgoraIO/agora-iot-callkit-web

Merge branch 'main' of github.com:AgoraIO/agora-iot-callkit-web #11

Workflow file for this run

name: deploy pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/web
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install pnpm 🤏🏻
uses: pnpm/action-setup@v4
with:
version: latest
package_json_file: examples/web/package.json
- name: Setup Node 💚
uses: actions/setup-node@v3
with:
node-version: 18
cache-dependency-path: examples/web/pnpm-lock.yaml
cache: "pnpm"
- name: Build 🔧
run: |
pnpm install
pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: examples/web/dist