Skip to content

Commit

Permalink
deploy page
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed May 5, 2024
1 parent e09d22e commit 0c53ce1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions page/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import UnoCSS from "unocss/vite";

export default defineConfig({
plugins: [solid(), UnoCSS()],
base: "/rust-storage-bench/"
});

0 comments on commit 0c53ce1

Please sign in to comment.