Browse Source

chore: add github action of deploying to github pages

pull/11505/head
afc163 9 months ago
committed by GitHub
parent
commit
f54cc03eae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 30
      .github/workflows/deploy.yml

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
Loading…
Cancel
Save