Update NuGet Packages - Minor Updates (#96) #69
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: Publish to NuGet | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: Build, Pack & Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore Dependencies | |
run: cd src && dotnet restore | |
- name: Build | |
run: cd src && dotnet build --configuration Release --no-restore | |
- name: Publish NuGet | |
uses: alirezanet/[email protected] | |
with: | |
PROJECT_FILE_PATH: src/Atrea.PolicyEngine/Atrea.PolicyEngine.csproj | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |