Skip to content

Commit

Permalink
Update workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzxmicah committed Oct 26, 2024
1 parent 1e97a8b commit b698306
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ jobs:
dnf install -y dnf-plugins-core rpmdevtools &&
spectool --get-files --directory=SOURCES --all SPECS/*.spec &&
dnf builddep -y SPECS/*.spec &&
rpmbuild --define '_topdir /workspace' -ba SPECS/*.spec
rpmbuild --define '_topdir /workspace' -ba SPECS/*.spec &&
grep -i "^version" SPECS/*.spec | awk '{print "Driver Ver: " $2}' >> release.log &&
rpm -q --qf "Kernel Ver: %{VERSION}-%{RELEASE}\n" kernel-devel >> release.log
"
- name: Check
run: |
ls -l BUILD/*
cat release.log
- name: Upload Artifact
uses: actions/upload-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: rpm-package
path: RPMS/
tag_name: ${{ github.sha }}
body_path: release.log
files: RPMS/*

0 comments on commit b698306

Please sign in to comment.