Add workflow for building and pushing Archlinux package
This commit is contained in:
parent
3f36bab253
commit
251940c36a
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal 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'
|
Loading…
Add table
Add a link
Reference in a new issue