WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

feat:增加同心圆布局示例 (#4955) #189

feat:增加同心圆布局示例 (#4955)

feat:增加同心圆布局示例 (#4955) #189

Workflow file for this run

name: site
on:
workflow_dispatch:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: 🎉 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: 🚧 Install
run: |
npm i pnpm@latest -g
pnpm install
- name: 🚀 Build Core library @antv/x6
run: |
pnpm run build
- name: 🚀 Build site
run: |
cd ./site && pnpm run build
cp ./CNAME ./dist/CNAME
- name: 👩‍⚕️ Verify build output
run: |
if [ ! -d "site/dist" ]; then
echo "Build output directory (site/dist) not found!"
exit 1
fi
- name: 🗂 Commit changes
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: site
force: true