Files
ebner 6ba9a29b52
Build and Publish RPM / build-and-publish (push) Successful in 6s
remove username
2025-08-06 17:01:16 +02:00

35 lines
913 B
YAML

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 pyenv.spec
- name: Publish RPM package
run: |
echo curl -X PUT \
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file RPMS/noarch/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"
curl -X PUT \
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file RPMS/noarch/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"