Skip to content

update nuget pack script #48

update nuget pack script

update nuget pack script #48

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack Scoring/ScoringEngine.csproj --no-build --no-restore
- name: Publish
run: dotnet nuget push Citolab.QTI.ScoringEngine.1.2.0.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}}
# - name: Publish NuGet
# # You may pin to the exact commit or the version.
# # uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc
# uses: brandedoutcast/publish-nuget@v2.5.5
# with:
# # Filepath of the project to be packaged, relative to root of repository
# PROJECT_FILE_PATH: Scoring/ScoringEngine.csproj
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}