From 1ed33365c9d97d5ba19b343eeeeaa45004dca097 Mon Sep 17 00:00:00 2001 From: killij <51908793+killij@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:59:39 +0000 Subject: [PATCH] ci: Upload the packaged release to the Github release --- .github/workflows/dotnet-publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet-publish.yml b/.github/workflows/dotnet-publish.yml index 8967a03..927d758 100644 --- a/.github/workflows/dotnet-publish.yml +++ b/.github/workflows/dotnet-publish.yml @@ -27,11 +27,17 @@ jobs: working-directory: ./src - name: Zip output - run: zip -r ../${{ env.RELEASE_TAG }}.zip ./ + run: zip -r ../${{ env.RELEASE_TAG }}.build.zip ./ working-directory: ./src/publish - - name: Upload artifacts - uses: actions/upload-artifact@v3 + - name: Upload to release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - name: resource-indexing-deployment - path: ./src/${{ env.RELEASE_TAG }}.zip \ No newline at end of file + files: ./src/${{ env.RELEASE_TAG }}.build.zip + + # - name: Upload artifacts + # uses: actions/upload-artifact@v3 + # with: + # name: resource-indexing-deployment + # path: ./src/${{ env.RELEASE_TAG }}.zip \ No newline at end of file