From a26c9fc7ec73249e60b36e9e671075391be8de8c Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 4 Jul 2025 16:42:55 +0800 Subject: [PATCH] chore: add gh-pages action --- .github/workflows/deploy-gh-pages.yml | 28 +++++++++++++++++++++++++++ biome.json | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-gh-pages.yml diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml new file mode 100644 index 00000000..23320233 --- /dev/null +++ b/.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 diff --git a/biome.json b/biome.json index 24487d51..5b80a0de 100644 --- a/biome.json +++ b/biome.json @@ -4,6 +4,7 @@ "ignoreUnknown": true, "includes": [ "**/*", + "**/.github/**", "!**/.umi/**", "**/*.md", "!**/.umi-production/**",