From 1c17d4cd86dd70c399e95dc1547af41e316b065d Mon Sep 17 00:00:00 2001 From: Kvintilyanov Aleksandr Date: Thu, 13 Mar 2025 14:54:31 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cffd4c3..dbe3a60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,6 +60,13 @@ jobs: name: WindeckHelper path: ${{ steps.create_archive.outputs.archiveName }} + - name: Upload artifact for release + if: github.event_name == 'workflow_dispatch' || github.event_name == 'release' + uses: actions/upload-artifact@v4 + with: + name: WindeckHelper + path: ${{ steps.create_archive.outputs.archiveName }} + release: runs-on: ubuntu-latest needs: build @@ -69,6 +76,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: WindeckHelper + path: . + - name: Get release version id: get_version run: | @@ -84,8 +97,9 @@ jobs: echo "::set-output name=version::$VERSION" - name: Rename archive to include version + id: rename_archive run: | - baseName="${{ needs.build.outputs.archiveName }}" + baseName="${{ env.BASE_FILE_NAME }}" version="${{ steps.get_version.outputs.version }}" newName="${baseName%.exe}-${version}.exe" mv "$baseName" "$newName"