From dff80e9b3210d4b1e5eceb5eaf8f8c69e55b6266 Mon Sep 17 00:00:00 2001 From: Archlinux <> Date: Thu, 1 May 2025 15:53:33 +0200 Subject: [PATCH] Initial commit --- .gitea/workflows/build.yml | 39 ++++++++++++++++++++++++++++++++++++++ prerun.sh | 4 ++++ 2 files changed, 43 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100755 prerun.sh diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..ff9a1d4 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,39 @@ +name: Workflows +on: + push: + branches: + - master + +jobs: + wake: + name: Wake Runner + runs-on: ubuntu-latest + steps: + - name: Wakeup Runner + run: | + curl https://idlesleep.wolproxy.seeseepuff.be/status + + build: + name: Build and Push + 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/prerun.sh b/prerun.sh new file mode 100755 index 0000000..2b9941e --- /dev/null +++ b/prerun.sh @@ -0,0 +1,4 @@ +git remote add aur https://aur.archlinux.org/REPO_NAME.git +git fetch aur +git merge -X theirs --no-edit aur/master +