From 64d3cc4674bda431fce8fce1f3516c578f869211 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 23 Apr 2025 11:23:19 +0200 Subject: [PATCH] Force push changes --- .gitea/workflows/build.yml | 30 ++++++++++++++++++++++++++ .gitea/workflows/update_wake.yml | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .gitea/workflows/update_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/update_wake.yml b/.gitea/workflows/update_wake.yml new file mode 100644 index 0000000..0f872f1 --- /dev/null +++ b/.gitea/workflows/update_wake.yml @@ -0,0 +1,36 @@ +name: Update repository and wake runner +on: + push: + branches: + - master + +jobs: + update: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Configure Git + run: | + git config user.email "sebastiaan.de.schaetzen+archlinux@gmail.com" + git config user.name "Sebastiaan de Schaetzen (automated)" + + - name: Add AUR repository + run: git remote add aur https://aur.archlinux.org/yay.git + + - name: Fetch AUR + run: git fetch aur + + - name: Rebase current changes + run: git rebase aur/master + + - name: Push changes (if any) + run: git push -f origin master + + wake: + runs-on: ubuntu-latest + steps: + - name: Wakeup Runner + run: | + curl https://idlesleep.wolproxy.seeseepuff.be/status \ No newline at end of file