diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 3ab52e46..8077c742 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -43,3 +43,16 @@ jobs: with: name: omniperf-${{github.ref_name}}.tar.gz path: build/omniperf-${{github.ref_name}}.tar.gz + - name: Set version + run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV + - name: Set ROCm release name + run: echo "RELASE_NAME=Omniperf ${{ env.VERSION }} for ${{github.ref_name}} " > $GITHUB_ENV + - name: Upload tarball Release Asset + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && github.repository == 'ROCm/omniperf' + with: + fail_on_unmatched: True + draft: True + name: ${{ if: startsWith(github.ref_name, 'rocm-') }}'Test A'${{ else }}'Test B'${{ endif }} + files: | + omniperf-*.tar.gz