From 10a3b280d0c21809719672f6029baf10bcce13fa Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 17 Dec 2024 08:58:33 +0800 Subject: [PATCH] [+] Vite action --- .github/workflows/vite.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/vite.yml diff --git a/.github/workflows/vite.yml b/.github/workflows/vite.yml new file mode 100644 index 0000000..3f2b54d --- /dev/null +++ b/.github/workflows/vite.yml @@ -0,0 +1,26 @@ +name: Vite Deploy + +on: + push: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: | + bun install + bun run build + - uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + + # - uses: actions/upload-artifact@v3 + # with: + # name: pages + # path: ./dist