diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml index 3167dd4..da5a4e8 100644 --- a/.github/workflows/build-rpm.yml +++ b/.github/workflows/build-rpm.yml @@ -58,4 +58,22 @@ jobs: uses: actions/upload-artifact@v4 with: name: built-rpms - path: ~/rpmbuild/RPMS/ + path: | + ~/rpmbuild/RPMS/ + ~/rpmbuild/SRPMS/ + + - name: Push Git Tag + run: | + git config user.name "GitHub Actions" + git config user.email "github-actions@users.noreply.github.com" + git tag ${PKG_VERSION} + git push origin ${PKG_VERSION} + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' + with: + draft: true + generate_release_notes: true + files: | + ~/rpmbuild/RPMS/**/*.rpm