initial commit
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user