feat(v8.0.0): release #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |