initial commit

This commit is contained in:
2025-07-01 16:19:26 +02:00
commit 1da300049b
5 changed files with 172 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Build and Publish RPM
name: Build and Publish RPM
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-publish:
runs-on: "ubuntu-latest-intranet"
container:
image: gitea.psi.ch/images/rhel9-developer-gitea-actions
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build RPM
run: |
rpmbuild -ba hdfview.spec
- name: Publish RPM package
run: |
echo curl -X PUT \
--user "ebner:${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file RPMS/x86_64/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"
curl -X PUT \
--user "ebner:${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file RPMS/x86_64/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"