From af89c8bba728f4464cc2cab976ac8134b4004e74 Mon Sep 17 00:00:00 2001 From: Dimitrij Date: Wed, 13 Aug 2025 22:12:02 +0100 Subject: [PATCH] Update Build_mR-NB.yml fix 6 --- .github/workflows/Build_mR-NB.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Build_mR-NB.yml b/.github/workflows/Build_mR-NB.yml index ef438004d..b06cd75a2 100644 --- a/.github/workflows/Build_mR-NB.yml +++ b/.github/workflows/Build_mR-NB.yml @@ -12,22 +12,22 @@ jobs: version: ${{ steps.version.outputs.version }} build: ${{ steps.version.outputs.build }} steps: - - name: 01.01 Checkout Repository + - name: [01.01] Checkout Repository uses: actions/checkout@v4 - - name: 01.02 Setup MSBuild + - name: [01.02] Setup MSBuild uses: microsoft/setup-msbuild@v2 with: vs-version: '17.14.12' - - name: 01.03 Install and run dotnet-t4 to transform T4 templates + - name: [01.03] Install and run dotnet-t4 to transform T4 templates shell: pwsh run: | dotnet tool install --global dotnet-t4 $ttFile = "$env:GITHUB_WORKSPACE\mRemoteNG\Properties\AssemblyInfo.tt" t4 $ttFile - - name: 01.04 Cache NuGet Packages + - name: [01.04] Cache NuGet Packages uses: actions/cache@v3 with: path: ~/.nuget/packages @@ -35,15 +35,15 @@ jobs: restore-keys: | ${{ runner.os }}-nuget- - - name: 01.05 Restore NuGet Packages + - name: [01.05] Restore NuGet Packages shell: pwsh run: dotnet restore - - name: 01.06 Build Release + - name: [01.06] Build Release shell: pwsh run: msbuild "$Env:GITHUB_WORKSPACE\mRemoteNG.sln" -p:Configuration="Release" -p:Platform=x64 /verbosity:minimal - - name: 01.07 Generate Version Info + - name: [01.07] Generate Version Info id: version shell: pwsh run: | @@ -61,14 +61,14 @@ jobs: echo "version=$version" >> $env:GITHUB_OUTPUT echo "build=$build" >> $env:GITHUB_OUTPUT - - name: 01.08 Create Zip File + - name: [01.08] Create Zip File shell: pwsh run: | $sourceDir = "$Env:GITHUB_WORKSPACE\mRemoteNG\bin\x64\Release\win-x64" $destFile = "$Env:GITHUB_WORKSPACE\$($env:GITHUB_OUTPUT.Split('=')[1])" Compress-Archive -Path "$sourceDir\*" -DestinationPath $destFile - - name: 01.09 Upload Zip File + - name: [01.09] Upload Zip File uses: actions/upload-artifact@v4 with: name: ${{ steps.version.outputs.zipname }} @@ -79,17 +79,17 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 02.1 Checkout Repository + - name: [02.01] Checkout Repository uses: actions/checkout@v4 - - name: 02.2 Download Artifact (Raw Format) + - name: [02.02] Download Artifact (Raw Format) uses: actions/download-artifact@v4 with: name: ${{ needs.Build-Release.outputs.zipname }} path: ./ archive-format: raw - - name: 02.3 Extract release notes from CHANGELOG.md + - name: [02.03] Extract release notes from CHANGELOG.md id: changelog run: | notes=$(awk '/^## /{i++} i==1{print}' CHANGELOG.md) @@ -97,7 +97,7 @@ jobs: echo "$notes" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - - name: 02.4 Create release and upload asset + - name: [02.04] Create release and upload asset shell: bash env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}