Skip to content

chore: update deploy workflow (#5192) #2

chore: update deploy workflow (#5192)

chore: update deploy workflow (#5192) #2

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v2
- run: pnpm install
- run: pnpm build
- run: cd site && pnpm site:build
- run: cp ./site/CNAME ./site/dist/CNAME
- run: |
cd site/dist
git init
git config --local user.name antv
git config --local user.email [email protected]
git add .
git commit -m "update by release action"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
directory: site/dist
branch: v4-site
force: true