Skip to content

Commit

Permalink
setup pipeline for nuget
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <kevin.dinh@lissi.id>
  • Loading branch information
Dindexx committed Dec 5, 2023
1 parent f9d7b05 commit 33ea498
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-nuget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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}}

0 comments on commit 33ea498

Please sign in to comment.