-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(first release): Initial release
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
1 change: 1 addition & 0 deletions
1
Blazor.MinimalApi.Abstractions/Blazor.MinimalApi.Abstractions.csproj
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 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 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