Files
ebner 52a5c6849f
Build and Publish RPM / build-and-publish (push) Successful in 12s
test
2026-03-11 11:50:19 +01:00

40 lines
1.3 KiB
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 LFS objects
run: git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git .
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# lfs: true
- name: Build RPM
run: |
spectool -g -R micromamba.spec
rpmbuild -ba micromamba.spec
- name: Publish RPM package
run: |
echo curl -X PUT \
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file /data/RPMS/x86_64/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"
curl -X PUT \
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
--upload-file /data/RPMS/x86_64/*.rpm \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"