From b3238ec7b4a391e0bb5e5a5e86b6a64259f52f19 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 9 Apr 2020 09:50:16 -0600 Subject: [PATCH] adds version.txt creation and upload steps --- .github/workflows/master.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index d25376b8..2341e2c2 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -56,11 +56,21 @@ jobs: - name: Zip Build Output shell: powershell run: ./.github/scripts/ZipBuildOutput.ps1 + # Write the version to a file to be consumed by the push jobs + - name: Write Version + run: Write-Output "$($Env:VERSION)" | Out-File -FilePath "$($Env:GITHUB_HOME)\output\version.txt" + # Upload the build output as an artifact - name: Upload Build Output uses: actions/upload-artifact@v1 with: name: Build path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip + # Upload the Version file as an artifact + - name: Upload version.txt + uses: actions/upload-artifact@v1 + with: + name: Version + path: ${{env.GITHUB_HOME}}\output\version.txt # Upload the build package to the release - name: Upload Release Package id: upload_release