From 14fdb28d519de388eeffb72869d8f4c72fcda217 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 16:33:06 +0100 Subject: [PATCH] Create rpmbuild.yml --- .github/workflows/rpmbuild.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/rpmbuild.yml diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml new file mode 100644 index 0000000..c54476d --- /dev/null +++ b/.github/workflows/rpmbuild.yml @@ -0,0 +1,20 @@ +name: RPM Build +on: push + +jobs: + build: + runs-on: alpine_latest + steps: + - uses: actions/checkout@v2 + + - 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 }}