generated from archlinux/template
Force push changes
This commit is contained in:
parent
179b744dec
commit
64d3cc4674
30
.gitea/workflows/build.yml
Normal file
30
.gitea/workflows/build.yml
Normal file
@ -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
|
36
.gitea/workflows/update_wake.yml
Normal file
36
.gitea/workflows/update_wake.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user