Closes #12 , #16 , and #30 (#29) #12
Workflow file for this run
This file contains hidden or 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
| name: Publish in Nuget.org V3 Package Registry | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - '1.*' | |
| - '2.*' | |
| - '3.*' | |
| - '4.*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| dotnet-quality: preview | |
| - name: Clean Last Build | |
| run: dotnet clean --framework net9.0 --configuration Release | |
| - name: Clean old Packages | |
| run: rm --force src/Validations/bin/Release/Triplex.Validations*.nupkg | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --framework net9.0 --configuration Release | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal --framework net9.0 --configuration Release | |
| - name: Package | |
| run: dotnet pack --configuration Release | |
| - name: Deploy To Nuget.org | |
| run: | | |
| cd src/Validations/bin/Release | |
| dotnet nuget push "**/*.nupkg" -k ${{secrets.NUGET_DEPLOYMENT_KEY}} -s https://api.nuget.org/v3/index.json |