From 641225f88304909fd2ca5407aec062d0fdf0ed8b Mon Sep 17 00:00:00 2001 From: "Jonathan R. Madsen" Date: Wed, 27 Jul 2022 15:10:19 -0500 Subject: [PATCH] Fix uploading release assets (#118) Fix uploading release assets --- .github/workflows/cpack.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpack.yml b/.github/workflows/cpack.yml index 5e413589c..ed2dbbde8 100644 --- a/.github/workflows/cpack.yml +++ b/.github/workflows/cpack.yml @@ -108,6 +108,14 @@ jobs: ./docker/test-docker-release.sh --distro ubuntu --versions ${{ matrix.os }} --rocm-versions ${CI_ROCM_VERSION} -- --stgz ${i} done + - name: Upload STGZ Release Assets + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && github.repository == 'AMDResearch/omnitrace' + with: + fail_on_unmatched_files: True + files: | + omnitrace-*.sh + - name: Test DEB Install timeout-minutes: 20 run: | @@ -117,13 +125,13 @@ jobs: ./docker/test-docker-release.sh --distro ubuntu --versions ${{ matrix.os }} --rocm-versions ${CI_ROCM_VERSION} -- --deb ${i} done - - name: Upload Release Assets + - name: Upload DEB Release Assets uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') && github.repository == 'AMDResearch/omnitrace' with: + fail_on_unmatched_files: True files: | - build-release/stgz/*.sh - build-release/deb/*.deb + omnitrace_*.deb opensuse: runs-on: ubuntu-20.04 @@ -209,6 +217,14 @@ jobs: ./docker/test-docker-release.sh --distro opensuse --versions ${{ matrix.os }} --rocm-versions ${CI_ROCM_VERSION} -- --stgz ${i} done + - name: Upload STGZ Release Assets + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && github.repository == 'AMDResearch/omnitrace' + with: + fail_on_unmatched_files: True + files: | + omnitrace-*.sh + - name: Test RPM Install timeout-minutes: 20 run: | @@ -218,10 +234,10 @@ jobs: ./docker/test-docker-release.sh --distro opensuse --versions ${{ matrix.os }} --rocm-versions ${CI_ROCM_VERSION} -- --rpm ${i} done - - name: Upload Release Assets + - name: Upload RPM Release Assets uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') && github.repository == 'AMDResearch/omnitrace' with: + fail_on_unmatched_files: True files: | - build-release/stgz/*.sh - build-release/rpm/*.rpm + omnitrace-*.rpm