diff --git a/.github/workflows/AlmaLinux.yml b/.github/workflows/AlmaLinux.yml index 72f68b5..b6c2842 100644 --- a/.github/workflows/AlmaLinux.yml +++ b/.github/workflows/AlmaLinux.yml @@ -56,4 +56,14 @@ jobs: uses: actions/upload-artifact@v2 with: name: cc-metric-collector SRPM AlmaLinux 8.5 - path: ${{ steps.rpmbuild.outputs.SRPM }} \ No newline at end of file + path: ${{ steps.rpmbuild.outputs.SRPM }} + + # See: https://github.com/softprops/action-gh-release + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + name: cc-metric-collector-${{github.ref_name}} + files: | + ${{ steps.rpmbuild.outputs.RPM }} + ${{ steps.rpmbuild.outputs.SRPM }} \ No newline at end of file