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/**",