Browse Source

Merge branch 'all-blocks' into v6-full-edition

pull/11509/head
afc163 9 months ago
committed by GitHub
parent
commit
6b15a0910a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 30
      .github/workflows/deploy.yml
  2. 3
      package.json
  3. 5
      src/loading.tsx

30
.github/workflows/deploy.yml

@ -0,0 +1,30 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- all-blocks
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies with Bun
run: bun install
- name: Build project
run: bun run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: preview.pro.ant.design

3
package.json

@ -47,7 +47,8 @@
"@ant-design/plots": "^2.6.0",
"@antv/l7-react": "^2.4.3",
"@antv/l7": "^2.22.7",
"numeral": "^2.0.6"
"numeral": "^2.0.6",
"rc-util": "^5.44.4"
},
"devDependencies": {
"@ant-design/pro-cli": "^3.3.0",

5
src/loading.tsx

@ -0,0 +1,5 @@
import { Skeleton } from 'antd';
const Loading: React.FC = () => <Skeleton style={{ margin: '24px 40px' }} active />;
export default Loading;
Loading…
Cancel
Save