From a8d337471f3c3f47b8535cb5209c8360f81229a6 Mon Sep 17 00:00:00 2001 From: Jens Marchewka Date: Sun, 17 Mar 2024 14:36:20 +0100 Subject: [PATCH] feat(first release): Initial release --- .github/workflows/versionize.yml | 88 +++++++++++++++++++ .../Blazor.MinimalApi.Abstractions.csproj | 15 +++- .../Blazor.MinimalApi.Client.csproj | 15 +++- .../Blazor.MinimalApi.Server.csproj | 15 +++- 4 files changed, 121 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/versionize.yml diff --git a/.github/workflows/versionize.yml b/.github/workflows/versionize.yml new file mode 100644 index 0000000..94efe03 --- /dev/null +++ b/.github/workflows/versionize.yml @@ -0,0 +1,88 @@ +# 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: Versionize All + +on: + push: + branches: [ "master" ] + +jobs: + +# test: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# with: +# fetch-depth: '0' +# - name: Setup .NET +# uses: actions/setup-dotnet@v3 +# with: +# dotnet-version: 8.0.x +# - name: Test +# working-directory: Test +# run: dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov +# - name: Publish coverage report to coveralls.io +# uses: coverallsapp/github-action@master +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# path-to-lcov: Test/TestResults/coverage.info + + versionize-publish: +# needs: test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '0' + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Install Versionize + run: dotnet tool install --global Versionize + + - name: Setup git + run: | + git config --local user.email "im.naice@googlemail.com" + git config --local user.name "Jens Marchewka" + + - name: Versionize + id: versionize + run: versionize --changelog-all --exit-insignificant-commits + continue-on-error: true + + - name: No release required + if: steps.versionize.outcome != 'success' + run: echo "Skipping publishing. No release required." + + - name: Push changes to GitHub + if: steps.versionize.outcome == 'success' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} + tags: true + + - name: Build and Publish Blazor.MinimalApi.Client + if: steps.versionize.outcome == 'success' + working-directory: Blazor.MinimalApi.Client + run: | + dotnet build + dotnet nuget push bin/**/*.nupkg --api-key ${{ secrets.JENS_NUGET_KEY }} --source https://api.nuget.org/v3/index.json + + - name: Build and Publish Blazor.MinimalApi.Server + if: steps.versionize.outcome == 'success' + working-directory: Blazor.MinimalApi.Server + run: | + dotnet build + dotnet nuget push bin/**/*.nupkg --api-key ${{ secrets.JENS_NUGET_KEY }} --source https://api.nuget.org/v3/index.json + + - name: Build and Publish Blazor.MinimalApi.Abstractions + if: steps.versionize.outcome == 'success' + working-directory: Blazor.MinimalApi.Abstractions + run: | + dotnet build + dotnet nuget push bin/**/*.nupkg --api-key ${{ secrets.JENS_NUGET_KEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file diff --git a/Blazor.MinimalApi.Abstractions/Blazor.MinimalApi.Abstractions.csproj b/Blazor.MinimalApi.Abstractions/Blazor.MinimalApi.Abstractions.csproj index 33f4d7a..7964aa0 100644 --- a/Blazor.MinimalApi.Abstractions/Blazor.MinimalApi.Abstractions.csproj +++ b/Blazor.MinimalApi.Abstractions/Blazor.MinimalApi.Abstractions.csproj @@ -1,19 +1,26 @@  + 8.0.0 net8.0 enable enable - Jens Marchewka Abstractions for Blazor.MinimalApi.Client and Blazor.MinimalApi.Server. - minimal_api.svg + minimal_api.png + Jens Marchewka (im.naice@googlemail.com) + Jens Marchewka (im.naice@googlemail.com) 2023 + https://github.com/naice/Blazor.MinimalApi + true + GIT + MIT + https://github.com/naice/Blazor.MinimalApi.git - + True - minimal_api.svg + minimal_api.png diff --git a/Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj b/Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj index bad49ca..047a58a 100644 --- a/Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj +++ b/Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj @@ -1,11 +1,18 @@  + 8.0.0 net8.0 enable enable - Jens Marchewka - minimal_api.svg + minimal_api.png + Jens Marchewka (im.naice@googlemail.com) + Jens Marchewka (im.naice@googlemail.com) 2023 + https://github.com/naice/Blazor.MinimalApi + true + GIT + MIT + https://github.com/naice/Blazor.MinimalApi.git @@ -17,10 +24,10 @@ - + True - minimal_api.svg + minimal_api.png diff --git a/Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj b/Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj index c4fefa9..20372a1 100644 --- a/Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj +++ b/Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj @@ -1,12 +1,19 @@ + 8.0.0 net8.0 enable enable Blazor.MinimalApi - Jens Marchewka - minimal_api.svg + minimal_api.png + Jens Marchewka (im.naice@googlemail.com) + Jens Marchewka (im.naice@googlemail.com) 2023 + https://github.com/naice/Blazor.MinimalApi + true + GIT + MIT + https://github.com/naice/Blazor.MinimalApi.git @@ -20,10 +27,10 @@ - + True - minimal_api.svg + minimal_api.png