Skip to content

feat: both adapt deploy&publish #47

feat: both adapt deploy&publish

feat: both adapt deploy&publish #47

Workflow file for this run

name: build-deploy-page
on:
push:
branches:
- main
paths-ignore:
- README.md
- LICENSE
jobs:
deploy:
name: Deploy Page
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7.28.0
- name: Setup node
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile --shamefully-hoist
- name: Build Modules
run: pnpm run build
- name: Build Examples
run: pnpm run deploy
- name: Deploy Examples
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./examples/dist
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: ${{ secrets.MY_USER_NAME }}
user_email: ${{ secrets.MY_USER_EMAIL }}
commit_message: auto deploy example