diff --git a/.github/workflows/release-dkms-deb-package.yml b/.github/workflows/release-dkms-deb-package.yml new file mode 100644 index 00000000..18c67d47 --- /dev/null +++ b/.github/workflows/release-dkms-deb-package.yml @@ -0,0 +1,33 @@ +name: Create and release kernel module deb package + +permissions: + contents: write + +on: + push: + tags: + - 'kmod*d*' + +jobs: + Create_Packages: + name: Create Packages + runs-on: ubuntu-latest + steps: + - name: "apt-get install" + run: | + sudo apt-get update + sudo apt-get -y install dkms debhelper + - name: Checkout code + uses: actions/checkout@v3 + with: + path: "REPO" + + - name: Build packages + run: | + cd REPO/mrmShared/linux + dpkg-buildpackage + - name: Release the Package + uses: softprops/action-gh-release@v1 + with: + files: | + REPO/mrmShared/*.deb diff --git a/.github/workflows/release-dkms-rpm-package.yml b/.github/workflows/release-dkms-rpm-package.yml new file mode 100644 index 00000000..dfe216b3 --- /dev/null +++ b/.github/workflows/release-dkms-rpm-package.yml @@ -0,0 +1,28 @@ +name: Create and release kernel module rpm package + +permissions: + contents: write + +on: + push: + tags: + - 'kmod*r*' + +jobs: + Create_Packages: + name: Create Packages + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + path: "REPO" + + - name: Build packages + run: | + cd REPO/mrmShared/linux/dkms-rpm + make + - name: Release the Package + uses: softprops/action-gh-release@v1 + with: + files: REPO/mrmShared/linux/dkms-rpm/rpmbuild/RPMS/*/*.rpm