diff --git a/.github/workflows/cicd-actions.yml b/.github/workflows/cicd-actions.yml index 9f71686..9ecd34a 100644 --- a/.github/workflows/cicd-actions.yml +++ b/.github/workflows/cicd-actions.yml @@ -24,12 +24,24 @@ jobs: 3.1.x 6.0.x 7.0.x + - name: replace version tokens + uses: cschleiden/replace-tokens@v1.2 + with: + files: '["**/*.csproj"]' + env: + RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} - name: install dependencies - run: dotnet restore - - name: build - run: dotnet build - - name: test + run: dotnet restore + - name: build source + run: dotnet build -c Release + - name: run tests run: dotnet test + - name: create nuget packages + run: dotnet pack -c Release -o ./out + - name: push nuget packages to github + run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" -s "https://nuget.pkg.github.com/nullfx/index.json" -k "${{ secrets.GITHUB_TOKEN }}" + - name: push nuget packages to nuget.org + run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" --skip-duplicate -s "https://api.nuget.org/v3/index.json" -k "${{ secrets.NUGET_ORG_API_KEY }}" - name: Cache SonarCloud packages uses: actions/cache@v1 with: diff --git a/NullFX.CRC.Benchmarks/NullFX.CRC.Benchmarks.csproj b/NullFX.CRC.Benchmarks/NullFX.CRC.Benchmarks.csproj index 1cfbd3e..e903639 100644 --- a/NullFX.CRC.Benchmarks/NullFX.CRC.Benchmarks.csproj +++ b/NullFX.CRC.Benchmarks/NullFX.CRC.Benchmarks.csproj @@ -2,13 +2,14 @@ Exe - net47;net48;netcoreapp3.1;net6.0 + netstandard2.0;net47;net48;netcoreapp3.1;net6.0;net7.0 false - 1.1.7 + + #{RELEASE_VERSION}# true - + diff --git a/NullFX.CRC.Tests/NullFX.CRC.Tests.csproj b/NullFX.CRC.Tests/NullFX.CRC.Tests.csproj index f040029..002216d 100644 --- a/NullFX.CRC.Tests/NullFX.CRC.Tests.csproj +++ b/NullFX.CRC.Tests/NullFX.CRC.Tests.csproj @@ -3,7 +3,8 @@ net7.0 false false - 1.1.7 + + #{RELEASE_VERSION}# true diff --git a/NullFX.CRC/NullFX.CRC.csproj b/NullFX.CRC/NullFX.CRC.csproj index 6584eb5..060d3f6 100644 --- a/NullFX.CRC/NullFX.CRC.csproj +++ b/NullFX.CRC/NullFX.CRC.csproj @@ -1,10 +1,10 @@  - net40;net45;net46;net47;net48;netcoreapp3.1;net6.0;net7.0 + netstandard2.0;net40;net45;net46;net47;net48;netcoreapp3.1;net6.0;net7.0 NullFX.CRC NullFX CRC is a small set of CRC utilities (crc8, crc16, and crc32) written in C# and released under the MIT License - 2022 Steve Whitley + 2023 Steve Whitley true Steve Whitley NullFX Software @@ -12,20 +12,21 @@ https://github.com/nullfx/NullFX.CRC https://github.com/nullfx/NullFX.CRC README.md - 1.1.7 Steve Whitley NullFX CRC is a small set of CRC utilities (crc8, crc16, and crc32) written in C# and released under the MIT License NullFX CRC true true snupkg - 1.1.7.0 - 1.1.7.0 MIT - 1.1.7 - 1.1.7 Release;Debug True + + #{RELEASE_VERSION}# + #{RELEASE_VERSION}#.0 + #{RELEASE_VERSION}#.0 + #{RELEASE_VERSION}# + #{RELEASE_VERSION}# diff --git a/README.md b/README.md index 55d83ac..6e8c678 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ NullFX CRC is a small set of CRC utilities written in native C# released under t ## Install ```sh -dotnet add PROJECT package NullFX.CRC --version 1.1.7 +dotnet add PROJECT package NullFX.CRC --version 1.1.8 ``` ## Examples: