cc-metric-collector/.github/workflows/rpmbuild.yml
2021-11-22 17:22:05 +01:00

24 lines
485 B
YAML

name: RPM Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Golang
uses: actions/setup-go@v2.1.4
- name: Build RPM package
id: rpm
uses: naveenrajm7/rpmbuild@master
with:
spec_file: "scripts/cc-metric-collector.spec"
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Binary RPM
path: ${{ steps.rpm.outputs.rpm_dir_path }}