generated from archlinux/template
Initial commit
This commit is contained in:
commit
fee271bd80
39
.gitea/workflows/build.yml
Normal file
39
.gitea/workflows/build.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user