From bd2db9cd67547a8564cf2c0189dac061d7957b4c Mon Sep 17 00:00:00 2001
From: Simeon Radivoev
Date: Thu, 7 May 2026 00:37:14 +0300
Subject: [PATCH] build: moved to manual forgejo build
---
.forgejo/workflows/deploy.yml | 25 ++++++++++++++++++++-----
package.json | 1 +
src/components/Hero.astro | 2 +-
src/layouts/Layout.astro | 2 +-
4 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml
index 425766c..710a70a 100644
--- a/.forgejo/workflows/deploy.yml
+++ b/.forgejo/workflows/deploy.yml
@@ -25,15 +25,30 @@ jobs:
git config --local http.${{ forge.server_url }}/${{ forge.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
- - name: Install, build, and upload your site
- uses: https://github.com/withastro/action@main
+ - name: Manual Bun Install
+ run: |
+ # Download and install via official script
+ curl -fsSL https://bun.sh/install | bash
+
+ # Manually add Bun to the PATH for subsequent steps
+ echo "BUN_INSTALL=$HOME/.bun" >> $GITHUB_ENV
+ echo "$HOME/.bun/bin" >> $GITHUB_PATH
+
+ # Force execution permissions just in case
+ chmod +x $HOME/.bun/bin/bun
+
+ # Verify it works immediately
+ $HOME/.bun/bin/bun --version
+
+ - name: Install dependencies
+ run: bun install --frozen-lockfile
+
+ - name: Build Website
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
SITE_BASE: /
SITE_URL: https://gameflow.simeonradivoev.com
- with:
- package-manager: "bun"
- cache: false
+ run: bun run build
- name: Deploy
uses: https://github.com/up9cloud/action-rsync@master
diff --git a/package.json b/package.json
index 1d4ac57..229d79b 100644
--- a/package.json
+++ b/package.json
@@ -38,6 +38,7 @@
},
"scripts": {
"dev": "astro dev",
+ "dev:host": "astro dev --host",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
diff --git a/src/components/Hero.astro b/src/components/Hero.astro
index 95c547e..63b33f9 100644
--- a/src/components/Hero.astro
+++ b/src/components/Hero.astro
@@ -32,7 +32,7 @@ import { Image } from "astro:assets";
and controllers. Focused on building a simple user experience and
intuitive UI as a curated community driven experience.
-