31 lines
632 B
YAML
31 lines
632 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@v7
|
|
|
|
- name: Build RPM
|
|
run: |
|
|
rpmbuild -ba pyenv.spec
|
|
|
|
- name: Upload RPM to Gitea
|
|
uses: actions/upload-rpm@main
|
|
with:
|
|
owner: lx_packages_rhel9
|
|
token: "${{ secrets.PACKAGE_DEPLOY_TOKEN }}"
|
|
files: "/data/RPMS/noarch/*.rpm"
|