diff --git a/.github/workflows/build-and-sign.yml b/.github/workflows/build-and-sign.yml index 6c0465cd..0fb892b1 100644 --- a/.github/workflows/build-and-sign.yml +++ b/.github/workflows/build-and-sign.yml @@ -7,6 +7,11 @@ jobs: windows: runs-on: windows-latest steps: + - name: Set up dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "3.1.x" + - name: Set up Node uses: actions/setup-node@v1 with: @@ -16,24 +21,37 @@ jobs: run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append shell: pwsh - - name: Setup dotnet - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "3.x" - - name: Print environment run: | node --version npm --version dotnet --version - exit 1 + - name: Install AST + shell: pwsh + run: | + cd $HOME + + git clone https://github.com/vcsjones/AzureSignTool.git + cd AzureSignTool + $latest_head = $(git rev-parse HEAD)[0..9] -join "" + $latest_version = "0.0.0-g$latest_head" + + Write-Host "--------" + Write-Host "git commit - $(git rev-parse HEAD)" + Write-Host "latest_head - $latest_head" + Write-Host "PACKAGE VERSION TO BUILD - $latest_version" + Write-Host "--------" + + cd $HOME - name: Checkout repo uses: actions/checkout@v2 - name: Load package version - run: ./.github/scripts/load-version.ps1 + run: | + ./.github/scripts/load-version.ps1 + exit 1 shell: pwsh - name: Install Node dependencies