From 434f34b24817d14b265b1a983ad8a557638250fd Mon Sep 17 00:00:00 2001 From: Michael Henderson Date: Tue, 15 Oct 2024 11:01:38 -0700 Subject: [PATCH] use action-gh-release for --- .../workflows/dotnet-build-and-release.yml | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet-build-and-release.yml b/.github/workflows/dotnet-build-and-release.yml index 4bb4f0d..84f4829 100644 --- a/.github/workflows/dotnet-build-and-release.yml +++ b/.github/workflows/dotnet-build-and-release.yml @@ -148,18 +148,26 @@ jobs: # } # } - - name: Upload Release Assets + # - name: Upload Release Assets + # if: success() && env.CREATE_RELEASE == 'True' + # uses: keyfactor/upload-release-assets@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ inputs.release_url }} + # asset_path: "${{ env.outputDir }}\\test-orch-mh_*.zip" + # asset_name: "test-orch-mh_*.zip" + # asset_content_type: application/zip + + - name: Release Asset(s) + uses: softprops/action-gh-release@v2 if: success() && env.CREATE_RELEASE == 'True' - uses: keyfactor/upload-release-assets@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ inputs.release_url }} - asset_path: "${{ env.outputDir }}\\test-orch-mh_*.zip" - asset_name: "test-orch-mh_*.zip" - asset_content_type: application/zip - - + body_path: ${{ env.outputDir }}\\test-orch-mh_*.zip + repository: keyfactor/test-orch-mh + files: ${{ env.outputDir }}\\test-orch-mh_*.zip + append_body: true + token: ${{ secrets.token }} # - name: Delete Failed Release # if: failure() && env.CREATE_RELEASE == 'True'