From 0c53ce13a1aa723125c325a91076be45f94712c1 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sun, 5 May 2024 17:19:51 +0200 Subject: [PATCH] deploy page --- .github/workflows/page.yml | 31 +++++++++++++++++++++++++++++++ page/vite.config.ts | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/page.yml diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml new file mode 100644 index 0000000..362fceb --- /dev/null +++ b/.github/workflows/page.yml @@ -0,0 +1,31 @@ +name: Deploy page + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 9 + - name: Use Node.js 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + cache-dependency-path: page/pnpm-lock.yaml + - name: Install dependencies + run: pnpm i + working-directory: page + - name: Generate page + run: pnpm build + working-directory: page + - name: Deploy page + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: page/dist diff --git a/page/vite.config.ts b/page/vite.config.ts index 5deaa3e..b5d0e30 100644 --- a/page/vite.config.ts +++ b/page/vite.config.ts @@ -4,4 +4,5 @@ import UnoCSS from "unocss/vite"; export default defineConfig({ plugins: [solid(), UnoCSS()], + base: "/rust-storage-bench/" });