adapt [email protected] (#162) #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: github-pages | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup 🛠️ | |
uses: ./.github/actions/setup | |
- name: Build 🔧 | |
env: | |
AGORA_APPID: ${{ secrets.AGORA_APPID }} | |
AGORA_AES_SALT: ${{secrets.AGORA_AES_SALT}} | |
run: | | |
pnpm install | |
pnpm run lint | |
pnpm run test | |
pnpm run renew | |
pnpm run build | |
- name: Build Docs 📖 | |
run: | | |
pnpm run typedoc | |
pnpm run build-storybook | |
pnpm run copy-docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |