From 3a534c75531cc33152820f914aa52678fd0b2ae1 Mon Sep 17 00:00:00 2001 From: Maxim Logaev Date: Mon, 18 Mar 2024 23:19:08 +0300 Subject: [PATCH] Added auto uploading to release Signed-off-by: Maxim Logaev --- .github/workflows/build-win64.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-win64.yml b/.github/workflows/build-win64.yml index 3ca47c88..b16dfbb2 100644 --- a/.github/workflows/build-win64.yml +++ b/.github/workflows/build-win64.yml @@ -16,11 +16,21 @@ jobs: run: | msys2 -c './build-win64.sh --prepare' msys2 -c './build-win64.sh' - - name: Build Dino Installer + - name: Build Dino installer run: | msys2 -c './build-win64.sh --build-installer' - - name: Upload Dino Installer + - name: Upload Dino installer uses: actions/upload-artifact@v4 with: name: dino-installer path: windows-installer/dino-installer.exe + + - name: Release Dino installer + if: startsWith(github.event.ref, 'refs/tags/') + uses: svenstaro/upload-release-action@2.9.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: windows-installer/dino-installer.exe + asset_name: dino-installer.exe + tag: ${{ github.ref }} + overwrite: true