2023-06-30 16:50:55 +00:00
|
|
|
|
|
|
|
name: RPM Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
paths-ignore:
|
|
|
|
- docs
|
|
|
|
- README.md
|
|
|
|
- NEWS.md
|
2023-07-01 04:39:39 +00:00
|
|
|
tags:
|
|
|
|
- '*'
|
2023-06-30 16:50:55 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: build RPM package
|
|
|
|
id: rpm
|
2023-06-30 17:22:19 +00:00
|
|
|
uses: tstack/rpmbuild@master
|
2023-06-30 16:50:55 +00:00
|
|
|
with:
|
|
|
|
spec_file: "release/lnav.spec"
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: Binary RPM
|
|
|
|
path: ${{ steps.rpm.outputs.rpm_dir_path }}
|
2023-06-30 21:04:24 +00:00
|
|
|
|
|
|
|
- name: Push to packagecloud.io
|
2023-06-30 21:42:48 +00:00
|
|
|
uses: tstack/upload-packagecloud@main
|
2023-06-30 21:04:24 +00:00
|
|
|
with:
|
|
|
|
userrepo: tstack/lnav
|
|
|
|
apitoken: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
2023-06-30 22:02:07 +00:00
|
|
|
packages: ${{ steps.rpm.outputs.rpm_dir_path }}x86_64
|
2023-06-30 21:04:24 +00:00
|
|
|
rpmdists: el/8
|