diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index e925861..ca40ae4 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -126,6 +126,7 @@ jobs: needs: [AlmaLinux-RPM-build, UBI-8-RPM-build] steps: + # See: https://github.com/actions/download-artifact - name: Download AlmaLinux 8.5 RPM uses: actions/download-artifact@v2 with: @@ -143,18 +144,31 @@ jobs: uses: actions/download-artifact@v2 with: name: cc-metric-collector SRPM for UBI 8 - - - name: Check files - run: ls * - # # 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: | - # ${{ needs.AlmaLinux-RPM-build.outputs.RPM }} - # ${{ needs.AlmaLinux-RPM-build.outputs.SRPM }} - # ${{ needs.UBI-8-RPM-build.outputs.RPM }} - # ${{ needs.UBI-8-RPM-build.outputs.SRPM }} \ No newline at end of file + - name: Set RPM variables + id: files + run: | + ALMA_85_RPM=$(ls *alma85*.rpm) + ALMA_85_SRPM=$(ls *alma85*.srpm) + UBI_8_RPM=$(ls *el8*.rpm) + UBI_8_SRPM=$(ls *el8*.srpm) + echo "ALMA_85_RPM::${ALMA_85_RPM}" + echo "ALMA_85_SRPM::${ALMA_85_SRPM}" + echo "UBI_8_RPM::${UBI_8_RPM}" + echo "UBI_8_SRPM::${UBI_8_SRPM}" + echo "::set-output name=ALMA_85_RPM::${ALMA_85_RPM}" + echo "::set-output name=ALMA_85_SRPM::${ALMA_85_SRPM}" + echo "::set-output name=UBI_8_RPM::${UBI_8_RPM}" + echo "::set-output name=UBI_8_SRPM::${UBI_8_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.files.outputs.ALMA_85_RPM }} + ${{ steps.files.outputs.ALMA_85_SRPM }} + ${{ steps.files.outputs.UBI_8_RPM }} + ${{ steps.files.outputs.UBI_8_SRPM }} \ No newline at end of file