paho-mqtt-pkgbuild/.forgejo/workflows/build.yaml
Edgar P. Burkhart 1b7e720a7c
Some checks failed
Build and push Archlinux package / build (push) Failing after 9s
Reorder steps in build workflow to install dependencies before checking out code
2025-05-05 18:27:45 +02:00

26 lines
739 B
YAML

name: Build and push Archlinux package
on:
push:
branches:
- main
jobs:
build:
runs-on: archlinux
steps:
- name: Set up Archlinux
run: |
sudo pacman -Syu --noconfirm nodejs git
- name: Checkout code
uses: actions/checkout@v4
- 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'