Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
define VERSION as sha for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alehandru committed Sep 12, 2023
1 parent 09b2467 commit 7321479
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7321479

Please sign in to comment.