Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 10 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Deploy to Void

on:
workflow_dispatch:
Expand All @@ -9,17 +9,19 @@ on:
permissions: {}

concurrency:
group: "pages"
group: "void-deploy"
cancel-in-progress: true

jobs:
build:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
pages: write
id-token: write
packages: read
env:
VOID_API_URL: https://api.void.cloud
steps:
- name: Checkout
uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
Expand All @@ -29,28 +31,8 @@ jobs:
with:
cache: true

- name: Build
run: vp run build

- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Connect to Void
run: vp exec void connect "$VOID_API_URL" --no-login

- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: "./apps/dashboard/dist"

deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
- name: Deploy to Void
run: vp run deploy
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Thumbs.db
.cache
.parcel-cache
.vite
.void

# Temporary files
.tmp
Expand Down
1 change: 0 additions & 1 deletion apps/dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { defineConfig } from "vite-plus";
// https://vite.dev/config/
export default defineConfig({
plugins: [tailwindcss()],
base: "/vibe-dashboard/",
build: {
rolldownOptions: {
output: {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"prepare": "vp config",
"dev": "vp run @vibe/dashboard#dev",
"build": "vp run @vibe/dashboard#build",
"deploy": "vp run build && void deploy --platform void --project vibe-dashboard --dir apps/dashboard/dist --spa",
"generate": "node tools/override-vite.mjs --stats"
},
"devDependencies": {
"playwright": "catalog:",
"top-github-dependents-by-stars": "catalog:",
"vite-plus": "catalog:"
"vite-plus": "catalog:",
"void": "catalog:"
},
"packageManager": "pnpm@11.24.0"
}
Loading
Loading