forked from antvis/G6
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 936 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v2
- run: pnpm install
- run: pnpm build
- run: pnpm build:site
- run: cp ./packages/site/CNAME ./packages/site/dist/CNAME
- run: |
cd ./packages/site/dist
git init
git config --local user.name antv
git config --local user.email antv@antfin.com
git add .
git commit -m "update by release action"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
directory: ./packages/site/dist
branch: v4-site
force: true