Update .gitignore and add build workflow for Archlinux package
Some checks failed
Build and push Archlinux package / build (push) Failing after 36s
Some checks failed
Build and push Archlinux package / build (push) Failing after 36s
This commit is contained in:
parent
d5eb7e404b
commit
00e92ea194
2 changed files with 30 additions and 4 deletions
26
.forgejo/workflows/build.yaml
Normal file
26
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Build and push Archlinux package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: archlinux
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Archlinux
|
||||
run: |
|
||||
sudo pacman -Syu --noconfirm
|
||||
- name: Build package
|
||||
run: |
|
||||
makepkg -fC --syncdeps --noconfirm
|
||||
- name: Push package
|
||||
run: |
|
||||
curl -X PUT \
|
||||
https://${{ 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 '@./*.pkg.tar.zst'
|
Loading…
Add table
Add a link
Reference in a new issue