From 7321479d2b71caf731f5baa62174ab8642a31181 Mon Sep 17 00:00:00 2001 From: alehandru Date: Mon, 11 Sep 2023 18:23:28 -0700 Subject: [PATCH] define VERSION as sha for commit --- .github/workflows/build-windows.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a2939f84ac2c0..303a0dd2bed87 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -150,20 +150,25 @@ jobs: run: | ls -R ${{ github.workspace }}/temp + - name: Determine version + shell: powershell + run: | + $version = "${{ github.sha }}".Substring(0,7) + echo "VERSION=$version" >> $env:GITHUB_ENV + - name: Create archive shell: pwsh working-directory: ${{ github.workspace }} run: | $source = "${{ github.workspace }}\temp" $destination = "${{ github.workspace }}" - $version = "${{ github.sha }}".Substring(0,7) - .\create-grpc-archive.ps1 -Source $source -Destination $destination -Version $version + .\create-grpc-archive.ps1 -Source $source -Destination $destination -Version ${{ env.VERSION }} - - name: Upload artifacts for gRPC + - name: Upload archive for gRPC uses: actions/upload-artifact@v3 with: name: grpc path: | - ${{ github.workspace }}\*.zip.* + ${{ github.workspace }}\*.zip.${{ env.VERSION }}