Skip to content

UserRequest with Login #108

UserRequest with Login

UserRequest with Login #108

name: Publish Spoleto.BookApi.Interfaces Package
on:
push:
branches: [ "main" ]
paths:
- 'src/Spoleto.BookApi.Interfaces/**'
- 'LICENSE'
- 'README.md'
pull_request:
branches: [ main ]
jobs:
Build-Tests-Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish to Nuget
uses: alirezanet/publish-nuget@v3.0.4
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: src/Spoleto.BookApi.Interfaces/Spoleto.BookApi.Interfaces.csproj
# API key to authenticate with NuGet server
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
INCLUDE_SYMBOLS: true
# Flag to toggle git tagging, enabled by default
TAG_COMMIT: false