Add build workflow for Archlinux package

This commit is contained in:
Edgar P. Burkhart 2025-05-21 18:14:47 +02:00
parent 481e6b524a
commit 6aca87dc42
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -0,0 +1,28 @@
name: Build and push Archlinux package
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: archlinux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build package
run: |
cp PKGBUILD /tmp
pushd /tmp
makepkg -fC --syncdeps --noconfirm
popd
cp /tmp/*.pkg.tar.zst package.pkg.tar.zst
- name: Push package
run: |
curl -X PUT \
${{ github.server_url }}/api/packages/${{ github.repository_owner }}/arch/os \
--user ${{ vars.DOCKER_PUSH_USERNAME }}:${{ secrets.DOCKER_PUSH_PASSWORD }} \
--header "Content-Type: application/octet-stream" \
--data-binary '@./package.pkg.tar.zst'