-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from marcominerva/develop
Add Validation libraries
- Loading branch information
Showing
23 changed files
with
744 additions
and
7 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,53 @@ | ||
name: Publish FluentValidation Helpers on NuGet | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: [ 'src/MinimalHelpers.Validation.Abstractions/**', 'src/MinimalHelpers.FluentValidation/**' ] | ||
workflow_dispatch: | ||
|
||
env: | ||
NET_VERSION: '8.x' | ||
PROJECT_NAME: src/MinimalHelpers.FluentValidation | ||
PROJECT_FILE: MinimalHelpers.FluentValidation.csproj | ||
TAG_NAME: routing | ||
RELEASE_NAME: MinimalHelpers.FluentValidation | ||
|
||
jobs: | ||
publish: | ||
name: Publish on NuGet | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | ||
|
||
- name: Setup .NET SDK ${{ env.NET_VERSION }} | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.NET_VERSION }} | ||
dotnet-quality: 'ga' | ||
|
||
- name: Nerdbank.GitVersioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
path: ${{ env.PROJECT_NAME }} | ||
|
||
- name: Package | ||
run: dotnet pack -c Release -o . '${{ env.PROJECT_NAME }}/${{ env.PROJECT_FILE }}' | ||
|
||
- name: Publish on NuGet | ||
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
with: | ||
tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }} | ||
release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} | ||
draft: false | ||
prerelease: false |
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,53 @@ | ||
name: Publish Validation Helpers on NuGet | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: [ 'src/MinimalHelpers.Validation.Abstractions/**', 'src/MinimalHelpers.Validation/**' ] | ||
workflow_dispatch: | ||
|
||
env: | ||
NET_VERSION: '8.x' | ||
PROJECT_NAME: src/MinimalHelpers.Validation | ||
PROJECT_FILE: MinimalHelpers.Validation.csproj | ||
TAG_NAME: routing | ||
RELEASE_NAME: MinimalHelpers.Validation | ||
|
||
jobs: | ||
publish: | ||
name: Publish on NuGet | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | ||
|
||
- name: Setup .NET SDK ${{ env.NET_VERSION }} | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.NET_VERSION }} | ||
dotnet-quality: 'ga' | ||
|
||
- name: Nerdbank.GitVersioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
path: ${{ env.PROJECT_NAME }} | ||
|
||
- name: Package | ||
run: dotnet pack -c Release -o . '${{ env.PROJECT_NAME }}/${{ env.PROJECT_FILE }}' | ||
|
||
- name: Publish on NuGet | ||
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
with: | ||
tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }} | ||
release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }} | ||
draft: false | ||
prerelease: false |
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
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
Oops, something went wrong.