From b539e91c3004e2bcb83a4e8a777c34c4795e5870 Mon Sep 17 00:00:00 2001
From: Sebastiaan de Schaetzen <sebastiaan.de.schaetzen@gmail.com>
Date: Wed, 23 Apr 2025 11:07:23 +0200
Subject: [PATCH] Add gitea workflow

---
 .gitea/workflows/build.yml | 30 ++++++++++++++++++++++++++++++
 .gitea/workflows/wake.yml  | 13 +++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 .gitea/workflows/build.yml
 create mode 100644 .gitea/workflows/wake.yml

diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
new file mode 100644
index 0000000..2629395
--- /dev/null
+++ b/.gitea/workflows/build.yml
@@ -0,0 +1,30 @@
+name: Build and Push
+on:
+  push:
+    branches:
+      - master
+  
+jobs:
+  build:
+    runs-on: ubuntu-amd64
+    container:
+      image: gitea.seeseepuff.be/archlinux/archlinux:latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+
+      - name: Ensure image is up-to-date
+        run: |
+          sudo pacman -Syu --noconfirm
+
+      - name: Build package
+        run: |
+          makepkg -s --noconfirm -
+      
+      - name: Push to repository
+        run: |
+          makepkg --packagelist | while read -r file; do
+            curl --user ${{ secrets.USERNAME }}:${{ secrets.PASSWORD }} \
+              --upload-file $file \
+              https://gitea.seeseepuff.be/api/packages/archlinux/arch/personal
+          done
diff --git a/.gitea/workflows/wake.yml b/.gitea/workflows/wake.yml
new file mode 100644
index 0000000..b054939
--- /dev/null
+++ b/.gitea/workflows/wake.yml
@@ -0,0 +1,13 @@
+name: Wake Runner
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Wakeup Runner
+        run: |
+          curl https://idlesleep.wolproxy.seeseepuff.be/status
\ No newline at end of file