autobuild RPM

This commit is contained in:
2026-01-08 17:58:19 -06:00
parent 390ccf9bb9
commit aa112425b1
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: Build RPM for new version
on:
push:
tags:
- "0.*"
jobs:
build_rpm:
name: Build the RPM
runs-on: fedora
steps:
- name: Install RPM build tools
run: sudo dnf install -y fedpkg mock
- name: Check out code
uses: actions/checkout@v6
- name: Run mock build
run: fedpkg --release f43 mockbuild
- name: Upload RPM to Gitea registry
run: |
curl \
--upload-file results_xpadneo-dkms/${{ gitea.ref_name }}/xpadneo-dkms-*.noarch.rpm \
--user ${{ gitea.actor }}:${{ secrets.REGISTRY_PAT }} \
${{ gitea.api_url }}/packages/${{ gitea.actor }}/rpm/f43/upload