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 5babd58
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 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,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
1 change: 1 addition & 0 deletions Blazor.MinimalApi.Client/Blazor.MinimalApi.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
1 change: 1 addition & 0 deletions Blazor.MinimalApi.Server/Blazor.MinimalApi.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>8.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 5babd58

Please sign in to comment.