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 }}