From 834669e0b7f0a4acf513f87fd163af54f28a0029 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Sun, 2 Jun 2024 14:10:54 +0500 Subject: [PATCH] Add workflow to build debian package --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8ebf843 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: [push] + +jobs: + build-deb: + runs-on: ubuntu-latest + container: + image: ixsystems/apps_validation:latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Build deb package + run: > + dpkg-buildpackage + -B + --no-sign + -jauto + + - name: Create artifacts dir + run: mkdir artifacts + if: success() + + - name: Move artifacts + run: mv ../*.deb artifacts + if: success() + + - uses: actions/upload-artifact@v1 + with: + name: py-catalog-validation + path: artifacts + if: success()