diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 634c7da..7d3e8cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,16 +23,14 @@ jobs: run: dotnet restore -r win-x64 - name: Build Release - env: - GITHUB_RUN_NUMBER: ${{ github.run_number }} - GITHUB_SHA: ${{ github.sha }} - run: dotnet build -c Release --no-restore + run: dotnet build -c Release --no-restore ` + /p:BuildNumber=${{ github.run_number }} ` + /p:SourceRevisionId=${{ github.sha }} - name: Publish Release - env: - GITHUB_RUN_NUMBER: ${{ github.run_number }} - GITHUB_SHA: ${{ github.sha }} - run: dotnet publish -c Release -r win-x64 --self-contained true --no-build + run: dotnet publish -c Release -r win-x64 --self-contained true --no-build ` + /p:BuildNumber=${{ github.run_number }} ` + /p:SourceRevisionId=${{ github.sha }} - name: Create ZIP shell: pwsh