lnav/.github/workflows/rpmbuild.yml

37 lines
791 B
YAML
Raw Normal View History

2023-06-30 16:50:55 +00:00
name: RPM Build
on:
push:
branches: [ master ]
paths-ignore:
- docs
- README.md
- NEWS.md
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
uses: tstack/upload-packagecloud@master
2023-06-30 21:04:24 +00:00
with:
userrepo: tstack/lnav
apitoken: ${{ secrets.PACKAGECLOUD_TOKEN }}
packages: ${{ steps.rpm.outputs.rpm_dir_path }}*
2023-06-30 21:04:24 +00:00
rpmdists: el/8