Skip to content

Commit

Permalink
feat(first release): Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
naice committed Mar 17, 2024
1 parent 3e43e81 commit a8d3374
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 12 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/versionize.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Jens Marchewka</Authors>
<Description>Abstractions for Blazor.MinimalApi.Client and Blazor.MinimalApi.Server.</Description>
<PackageIcon>minimal_api.svg</PackageIcon>
<PackageIcon>minimal_api.png</PackageIcon>
<Authors>Jens Marchewka ([email protected])</Authors>
<Copyright>Jens Marchewka ([email protected]) 2023</Copyright>
<PackageProjectUrl>https://github.com/naice/Blazor.MinimalApi</PackageProjectUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryType>GIT</RepositoryType>
<License>MIT</License>
<RepositoryUrl>https://github.com/naice/Blazor.MinimalApi.git</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Include="..\res\minimal_api.svg">
<None Include="..\res\minimal_api.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
<Link>minimal_api.svg</Link>
<Link>minimal_api.png</Link>
</None>
</ItemGroup>

Expand Down
15 changes: 11 additions & 4 deletions Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Jens Marchewka</Authors>
<PackageIcon>minimal_api.svg</PackageIcon>
<PackageIcon>minimal_api.png</PackageIcon>
<Authors>Jens Marchewka ([email protected])</Authors>
<Copyright>Jens Marchewka ([email protected]) 2023</Copyright>
<PackageProjectUrl>https://github.com/naice/Blazor.MinimalApi</PackageProjectUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryType>GIT</RepositoryType>
<License>MIT</License>
<RepositoryUrl>https://github.com/naice/Blazor.MinimalApi.git</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,10 +24,10 @@
</ItemGroup>

<ItemGroup>
<None Include="..\res\minimal_api.svg">
<None Include="..\res\minimal_api.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
<Link>minimal_api.svg</Link>
<Link>minimal_api.png</Link>
</None>
</ItemGroup>

Expand Down
15 changes: 11 additions & 4 deletions Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Blazor.MinimalApi</RootNamespace>
<Authors>Jens Marchewka</Authors>
<PackageIcon>minimal_api.svg</PackageIcon>
<PackageIcon>minimal_api.png</PackageIcon>
<Authors>Jens Marchewka ([email protected])</Authors>
<Copyright>Jens Marchewka ([email protected]) 2023</Copyright>
<PackageProjectUrl>https://github.com/naice/Blazor.MinimalApi</PackageProjectUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryType>GIT</RepositoryType>
<License>MIT</License>
<RepositoryUrl>https://github.com/naice/Blazor.MinimalApi.git</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
Expand All @@ -20,10 +27,10 @@
</ItemGroup>

<ItemGroup>
<None Include="..\res\minimal_api.svg">
<None Include="..\res\minimal_api.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
<Link>minimal_api.svg</Link>
<Link>minimal_api.png</Link>
</None>
</ItemGroup>
</Project>

0 comments on commit a8d3374

Please sign in to comment.