ci: automatic deployments #1
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: Deploy example | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deployt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
- name: Install & Build | |
run: | | |
pnpm install | |
pnpm build | |
- name: Generate example | |
run: pnpm run example | |
- name: Deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
pnpm run deploy -u "github-actions-bot <support+actions@github.com>" |