💚 Adds CI build for web

This commit is contained in:
Daniel Svitan 2025-06-05 10:04:29 +02:00
parent 940f6ea1b5
commit 7b50441da2
2 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} build
on: [push]
jobs:
build:
build-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -21,3 +21,17 @@ jobs:
run: cd admin && go get .
- name: "[admin] Build"
run: cd admin && go build -v ./...
build-nuxt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun 1.2.0
run: oven-sh/setup-bun@v2
with:
bun-version: 1.2.0
- name: Display Bun version
run: bun --version
- name: "[web] Install dependencies"
run: cd web && bun install
- name: "[web] Build"
run: cd web && bun run build

View File

@ -31,7 +31,7 @@ async function onSubmit(event: FormSubmitEvent<Schema>) {
const res = await $fetch("https://door.svitan.dev/open", {
method: "GET",
headers: {
Authorization: token
Authorization: `Bearer ${token}`
}
})