From 39d58b1a0d049103d9f539347b69047a75c2e16f Mon Sep 17 00:00:00 2001 From: Bryan Gonzalez Date: Fri, 6 Oct 2023 20:39:19 -0400 Subject: [PATCH] refactor: Update build and publish command - Updated the build and publish command in the release workflow to include the project version, debug type, debug symbols, and ready-to-run flag. Also added the project description, company name, copyright information, and assembly title in the GenerateYKCSR.csproj file. - The new command enhances the build process and provides more accurate details for the YubiKey CSR Generator tool. Signed-off-by: Bryan Gonzalez --- .github/workflows/release.yml | 4 ++-- src/yk-csr-cli/GenerateYKCSR.csproj | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f012f4..68cabd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: dotnet-version: "8.0" - name: Build - run: dotnet publish /p:DebugType=None /p:DebugSymbols=false /p:PublishReadyToRun=true -c Release -r ${{ matrix.target }} --self-contained -o out/${{ matrix.target }} -- ./src/yk-csr-cli/GenerateYKCSR.csproj + run: dotnet publish -c Release --self-contained -p:DebugType=None -p:DebugSymbols=false -p:PublishReadyToRun=true -p:Version=${{ github.event.release.tag_name }} -r ${{ matrix.target }} -o out/${{ matrix.target }} -- ./src/yk-csr-cli/GenerateYKCSR.csproj - name: Archive and Hash run: | @@ -39,7 +39,7 @@ jobs: sha256sum ./out/${{ matrix.target }}.zip > ./out/${{ matrix.target }}.zip.sha256 - name: Upload - run: gh release upload ${{github.event.release.tag_name}} ./out/${{ matrix.target }}.zip ./out/${{ matrix.target }}.zip.sha256 --clobber + run: gh release upload ${{ github.event.release.tag_name }} ./out/${{ matrix.target }}.zip ./out/${{ matrix.target }}.zip.sha256 --clobber env: GITHUB_TOKEN: ${{ github.TOKEN }} shell: bash diff --git a/src/yk-csr-cli/GenerateYKCSR.csproj b/src/yk-csr-cli/GenerateYKCSR.csproj index e5907b0..4f61b86 100644 --- a/src/yk-csr-cli/GenerateYKCSR.csproj +++ b/src/yk-csr-cli/GenerateYKCSR.csproj @@ -1,12 +1,18 @@ + + CLI tool for generating CSRs using YubiKey hardware tokens with PIV support. + Bryan Gonzalez + © 2023-$([System.DateTime]::Now.Year) $(Company) + YubiKey CSR Generator + + Exe net8.0 enable enable preview - 1.0.0 true true true