From 6baab3c39c24b8b1b97233e800667a3598c3187e Mon Sep 17 00:00:00 2001 From: IngvarX Date: Tue, 9 Mar 2021 20:47:56 +0300 Subject: [PATCH] Update existing release instead of creating new one --- .../workflows/windows-installer-deploy.yml | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/windows-installer-deploy.yml b/.github/workflows/windows-installer-deploy.yml index 5689dce1..57631dd8 100644 --- a/.github/workflows/windows-installer-deploy.yml +++ b/.github/workflows/windows-installer-deploy.yml @@ -27,23 +27,13 @@ jobs: run: | cd src/Camelot.WindowsInstaller msbuild -p:Configuration=Release -p:platform=x64 - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - name: Upload Release Asset id: upload-release-asset - uses: actions/upload-release-asset@v1 + uses: svenstaro/upload-release-action@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src/Camelot.WindowsInstaller/bin/Release/Camelot.msi - asset_name: Camelot.msi - asset_content_type: application/octet-stream .msi \ No newline at end of file + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} + file: ./src/Camelot.WindowsInstaller/bin/Release/Camelot.msi + asset_name: CamelotWindows.msi