Skip to content

Fixing Release Pipeline #5

Fixing Release Pipeline

Fixing Release Pipeline #5

Workflow file for this run

name: Publish Nuget
on:
push:
branches:
- "main"
tags:
- v*
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
dotnet-quality: 'preview'
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
- name: Test
run: echo $NUGET_AUTH_TOKEN
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
- name: Run Build
run: dotnet build src/ABSmartly.Sdk
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
- name: Run Release
run: dotnet nuget push src/ABSmartly.Sdk/bin/Debug/ --source https://api.nuget.org/v3/index.json --api-key %NUGET_AUTH_TOKEN
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}