-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Include action to release deb and rpm dkms packages
- Loading branch information
1 parent
eebc33b
commit 532f17d
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |