Browse Source

chore: add gh-pages action

pull/11500/head
afc163 9 months ago
parent
commit
a26c9fc7ec
  1. 28
      .github/workflows/deploy-gh-pages.yml
  2. 1
      biome.json

28
.github/workflows/deploy-gh-pages.yml

@ -0,0 +1,28 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- master
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun run gh-pages

1
biome.json

@ -4,6 +4,7 @@
"ignoreUnknown": true,
"includes": [
"**/*",
"**/.github/**",
"!**/.umi/**",
"**/*.md",
"!**/.umi-production/**",

Loading…
Cancel
Save