From 549ff679f221e51f86cd0cebfc46bc93f9ffaca4 Mon Sep 17 00:00:00 2001
From: Cyper
Date: Fri, 20 Jun 2025 02:01:19 -0400
Subject: [PATCH] Attempt 1 on adding site generation to runner
---
.gitea/workflows/deploy.yaml | 7 ++++++-
.gitignore | 1 +
src/_site/index.html | 26 --------------------------
src/_site/posts/post-1/index.html | 18 ------------------
src/_site/posts/post-2/index.html | 18 ------------------
5 files changed, 7 insertions(+), 63 deletions(-)
create mode 100644 .gitignore
delete mode 100644 src/_site/index.html
delete mode 100644 src/_site/posts/post-1/index.html
delete mode 100644 src/_site/posts/post-2/index.html
diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml
index ab90264..8e4b8bf 100644
--- a/.gitea/workflows/deploy.yaml
+++ b/.gitea/workflows/deploy.yaml
@@ -13,10 +13,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
+ - name: Build site
+ run: |
+ cd ./src
+ npx @11ty/eleventy
+
- name: Deploy folder
run: |
echo "Cleaning old site files..."
rm -rf /var/sites/cy.cyper.cc/www/html/*
echo "Deploying new site files from src/_site folder..."
- mv ./src/_site/* /var/sites/cy.cyper.cc/www/html
\ No newline at end of file
+ mv ./_site/* /var/sites/cy.cyper.cc/www/html
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f640035
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+src/_site/
\ No newline at end of file
diff --git a/src/_site/index.html b/src/_site/index.html
deleted file mode 100644
index 86c2a01..0000000
--- a/src/_site/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
- Document
-
-
-
-
-
-
-
-First post!
-
-
-
-Second post!
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/_site/posts/post-1/index.html b/src/_site/posts/post-1/index.html
deleted file mode 100644
index 98c3e62..0000000
--- a/src/_site/posts/post-1/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- Document
-
-
-
-
- First post!
-
-
-
-
-
\ No newline at end of file
diff --git a/src/_site/posts/post-2/index.html b/src/_site/posts/post-2/index.html
deleted file mode 100644
index 173c93e..0000000
--- a/src/_site/posts/post-2/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- Document
-
-
-
-
- Second post!
-
-
-
-
-
\ No newline at end of file