Files
pyenv/.github/workflows/build.yml
T
ebner 3d1a99af5b
Build and Publish RPM / build-and-publish (push) Failing after 5s
fix spec file name
2025-07-01 16:23:34 +02:00

35 lines
925 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 "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"