Skip to content

Commit

Permalink
feat: Include action to release deb and rpm dkms packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfedel committed Mar 1, 2024
1 parent eebc33b commit 532f17d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release-dkms-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create deb and rpm package

permissions:
contents: write

on:
push:
tags:
- 'kd*'

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
cd dkms-rpm
make
- name: Release the Package
uses: softprops/action-gh-release@v1
with:
files: |
REPO/mrmShared/*.deb
REPO/mrmShared/linux/dkms-rpm/rpmbuild/RPMS/*/*.rpm

0 comments on commit 532f17d

Please sign in to comment.