Dybal.Utils.Guards 1.0.1 #20
Workflow file for this run
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
name: Upload packages to nuget | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: ["src/Utils/Dybal.Utils.Guards", "src/Utils/Dybal.Utils.Guards.ObjectExtensions", "src/Utils/Dybal.Utils.Extensions.DependencyInjection", "src/Utils/Dybal.Utils.TypedValues"] | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.x' | |
source-url: https://nuget.pkg.github.com/martindybal/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- run: dotnet build src/Dybal.Utils.sln --configuration Release | |
- name: Create the package | |
run: dotnet pack ${{ matrix.project }} --configuration Release | |
- name: Push Package to NuGet.org | |
continue-on-error: true | |
run: dotnet nuget push ${{ matrix.project }}/bin/Release/*.nupkg -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json |