Skip to content

Update workflow for release #56

Update workflow for release

Update workflow for release #56

Workflow file for this run

name: Build RPM
on:
- push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Docker
uses: docker/setup-buildx-action@v3
- name: Build RPM
run: |
docker run --rm -v $(pwd):/workspace -w /workspace fedora:latest bash -c "
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 &&
mv RPMS rpms &&
grep -i '^version' SPECS/*.spec | awk '{print \"Driver Ver: \" \$NF}' >> release.log &&
rpm -q --qf 'Kernel Ver: %{VERSION}-%{RELEASE}\n' kernel-devel >> release.log
"
- name: Set Variables
id: vars
run: |
echo "version=$(grep -i '^kernel' release.log | awk '{print $NF}')" >> $GITHUB_OUTPUT
- name: Check
run: |
ls -l BUILD/*
cat release.log
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.vars.outputs.version }}
body_path: release.log
files: rpms/*