Skip to content

Commit

Permalink
chore: config v5 deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Nov 29, 2023
1 parent a315fec commit 00a2554
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 2,926 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- v5

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: 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 [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: ./packages/site/dist
branch: v5-site
force: true
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
"scripts": {
"test": "echo passed",
"postinstall": "husky install",
"prepare": "husky install"
"prepare": "husky install",
"build": "run-s build:*",
"build:g6": "cd ./packages/g6 && npm run build",
"build:map-view": "cd ./packages/g6-plugin-map-view && npm run build",
"build:site": "cd ./packages/site && npm run site:build"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/jest": "^29.5.4",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"react-scripts": "3.1.2",
"stats.js": "^0.17.0",
"vite": "^4.4.9"
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8"
},
"pnpm": {
"overrides": {
Expand Down
3 changes: 1 addition & 2 deletions packages/g6-plugin-map-view/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@typescript-eslint/no-this-alias": "off"
},
"env": {
"node": true,
"jest": true
"node": true
}
}
11 changes: 6 additions & 5 deletions packages/g6-plugin-map-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
},
"dependencies": {
"@antv/dom-util": "^2.0.4",
"@antv/graphlib": "^2.0.2",
"@antv/util": "~2.0.5",
"@antv/l7": "^2.18.3",
"@antv/l7-maps": "^2.18.3",
"@antv/g6": "^5.0.0"
"@antv/util": "~2.0.5"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.3",
Expand Down Expand Up @@ -84,8 +82,8 @@
"rollup-plugin-polyfill-node": "^0.8.0",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-visualizer": "^5.6.0",
"typedoc": "^0.25.0",
"tslib": "^2.5.0",
"typedoc": "^0.25.0",
"typescript": "5.1.6"
},
"limit-size": [
Expand All @@ -98,5 +96,8 @@
"path": "dist/g6-plugin-map-view.min.js",
"limit": "3 Mb"
}
]
],
"peerDependencies": {
"@antv/g6": "^5.0.0"
}
}
1 change: 0 additions & 1 deletion packages/g6-plugin-map-view/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"isolatedModules": true,
"pretty": true,
"lib": ["dom", "esnext"],
"types": ["@types/jest"],
"skipLibCheck": true,
"sourceRoot": "src",
"baseUrl": "src",
Expand Down
6 changes: 4 additions & 2 deletions packages/site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ export default defineConfig({
zh: 'G6 是一个简单、易用、完备的图可视化引擎,它在高定制能力的基础上,提供了一系列设计优雅、便于使用的图可视化解决方案。能帮助开发者搭建属于自己的图可视化、图分析、或图编辑器应用。',
en: 'G6 is graph visualization engine with simplicity and convenience. Based on the ability of customize, it provides a set of elegant graph visualization solutions, and helps developers to build up applications for graph visualization, graph analysis, and graph editor.',
},
image:
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*6dSUSo3QTk0AAAAAAAAAAAAADmJ7AQ/original',
image: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*6dSUSo3QTk0AAAAAAAAAAAAADmJ7AQ/original',
imageStyle: {
transform: 'scale(0.7)',
marginLeft: '100px',
Expand Down Expand Up @@ -494,4 +493,7 @@ export default defineConfig({
},
links: [],
jsMinifier: 'terser',
analytics: {
ga_v2: 'G-YLQBGDK1GT',
},
});
2 changes: 1 addition & 1 deletion packages/site/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
g6-v3-2.antv.vision
g6.antv.vision
Loading

0 comments on commit 00a2554

Please sign in to comment.