Add build workflow for Archlinux package
This commit is contained in:
parent
481e6b524a
commit
6aca87dc42
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/build.yaml
Normal file
28
.forgejo/workflows/build.yaml
Normal 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'
|
Loading…
Add table
Add a link
Reference in a new issue