CommandLineParser: word-wrap the section headings in the help screen #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Prepare version | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const script = require(require('path').resolve('./.github/workflows/version.js')) | |
| const vs = script({ context, github, firstRev: 'a3c6d6ad' }); | |
| const majmin = '2.2'; | |
| let ver_str = vs.formatVersion(`${majmin}.$(GitRevCount)-$(GitBranch) [$(GitSha6)/$(yyyy)-$(mm)-$(dd)]`); | |
| let ver_suf = vs.formatVersion('$(GitBranch)'); | |
| if (ver_suf == 'main') { | |
| ver_str = ver_str.replace('-main', ''); | |
| ver_suf = ''; | |
| } | |
| core.exportVariable('VER_STR', ver_str); | |
| core.exportVariable('VER_NUM', vs.formatVersion(`${majmin}.$(GitRevCount)`)); | |
| core.exportVariable('VER_SUF', ver_suf); | |
| - name: Clone RT.Util | |
| run: git clone https://github.com/RT-Projects/RT.Util.git ../RT.Util | |
| - name: Install dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.x' | |
| dotnet-quality: 'ga' | |
| - name: dotnet restore | |
| run: dotnet restore /p:Configuration=Release | |
| - name: dotnet test | |
| run: dotnet test /p:Configuration=Release /p:TargetFramework=net8.0 | |
| - name: "dotnet pack: ${{ env.VER_STR }}" | |
| run: dotnet pack Src/RT.CommandLine.csproj --configuration Release -p:InformationalVersion="${{env.VER_STR}}" -p:VersionPrefix=${{env.VER_NUM}} -p:VersionSuffix=${{env.VER_SUF}} -p:FileVersion=${{env.VER_NUM}} -p:AssemblyVersion=${{env.VER_NUM}} -o Publish | |
| - name: Push to NuGet | |
| run: dotnet nuget push Publish/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: RT.CommandLine-v${{env.VER_NUM}} | |
| path: Publish | |
| if-no-files-found: error |