diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1abcae..4d48ec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,12 @@ jobs: apt-get install -y rpm cargo rustc libsystemd-dev pkg-config - name: Build RPM package run: | - rpmbuild -ba linux-patch-api.spec + mkdir -p ~/rpmbuild/{SPECS,SOURCES,BUILD,RPMS,SRPMS} + cp linux-patch-api.spec ~/rpmbuild/SPECS/ + tar -czf ~/rpmbuild/SOURCES/linux-patch-api.tar.gz \ + Cargo.toml Cargo.lock src/ configs/ debian/ \ + linux-patch-api.spec build-rpm.sh + rpmbuild -ba ~/rpmbuild/SPECS/linux-patch-api.spec - name: Upload to releases (on tag) if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1