Add workflow for building and pushing Archlinux package
Some checks failed
pre-commit / pre-commit (push) Waiting to run
Build and push Archlinux package / build (push) Failing after 23s

This commit is contained in:
Edgar P. Burkhart 2025-05-05 19:50:34 +02:00
parent 3f36bab253
commit 251940c36a
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -0,0 +1,24 @@
name: Build and push Archlinux package
on:
push:
branches:
- main
jobs:
build:
runs-on: archlinux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build package
run: |
makepkg -fC --syncdeps --noconfirm
cp *.pkg.tar.zst hasspy.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 '@./hasspy.pkg.tar.zst'