Skip to content

setup pipeline for nuget #1

setup pipeline for nuget

setup pipeline for nuget #1

Workflow file for this run

name: CI
on:
push:
branches:
- setup-cicd-pipeline
pull_request:
branches:
- setup-cicd-pipeline
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'Hyperledger.Aries.sln'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore dependencies
run: nuget restore $SOLUTION
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore
#- name: Run tests
#run: dotnet test /p:Configuration=$env:BUILD_CONFIG --no-restore --no-build --verbosity normal
- name: Publish
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}