diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..43e3fa6 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,34 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Pack + run: dotnet pack --output ./nupkgs --configuration Release + - name: Publish Nuget to GitHub registry + run: dotnet nuget push ./nupkgs/*.nupkg -k ${GITHUB_TOKEN} -s https://nuget.pkg.github.com/Sharp-Point-Data/index.json --skip-duplicate --no-symbols + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Core/Core.csproj b/Core/Core.csproj index 346652f..c7397e8 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -1,7 +1,7 @@  - netstandard1.5 + netstandard2.0 Archon.Enums Archon.Enums Archon Framework Library™ @@ -11,6 +11,7 @@ https://github.com/civicsource/enums/ https://github.com/civicsource/enums.git git + 3.0.0 Provides convenient utility methods for working with Enums and their user-friendly descriptions enums utility description parser friendly names tostring diff --git a/Geography/Geography.csproj b/Geography/Geography.csproj index 9aeb6e9..c50d247 100644 --- a/Geography/Geography.csproj +++ b/Geography/Geography.csproj @@ -1,7 +1,7 @@  - netstandard1.0 + netstandard2.0 Archon.Enums.Geography Archon.Enums Archon Framework Library™ @@ -11,6 +11,7 @@ https://github.com/civicsource/enums/ https://github.com/civicsource/enums.git git + 3.0.0 Provides enums / descriptions for 248 countries and 75 US states and Canadian provinces states provinces user-friendly united states canada canadian diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index f8139a1..278ac99 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,15 +1,18 @@  - netcoreapp1.1 + net9.0 Archon.Enums.Tests Archon.Enums.Tests - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +