From 73315e96e8596ee177706155603975145156eef5 Mon Sep 17 00:00:00 2001
From: Ari <ariadna@hey.com>
Date: Sun, 11 May 2025 02:42:56 -0400
Subject: [PATCH] Add the actual build step smh

---
 .forgejo/workflows/deploy.yaml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml
index bc1e783..b72aab4 100644
--- a/.forgejo/workflows/deploy.yaml
+++ b/.forgejo/workflows/deploy.yaml
@@ -23,13 +23,16 @@ jobs:
           ssh-keyscan -H ${{ vars.SERVER_HOST }} >> ~/.ssh/known_hosts
           echo "Deploying to ${{ vars.SERVER_HOST }} as ${{ vars.SERVER_USER }} to /var/www/${{ github.ref_name }}"
 
-      - name: Debug SSH Connection
-        run: ssh -v -o PasswordAuthentication=no -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} echo "SSH Connection Successful"
+      - name: Install Deno
+        uses: https://github.com/denoland/setup-deno@v2
 
+      - name: build site
+        run: |
+          deno task build
       - name: create folder if not exists
         run: |
           ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /home/common/www/ariexpress/${{ github.ref_name }}"
 
       - name: Deploy via SCP
         run: |
-          scp -i ~/.ssh/id_ed25519 -rv ./* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }}
+          scp -i ~/.ssh/id_ed25519 -rv ./_site/* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }}