Skip to content

build: fix .net version #16

build: fix .net version

build: fix .net version #16

Workflow file for this run

name: Nuget Pack n Push
on:
push:
tags: "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olegtarasov/[email protected] #populates GIT_TAG_NAME
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack -p:Version=${GIT_TAG_NAME}
- name: Push
run: dotnet nuget push --source https://api.nuget.org/v3/index.json -k ${NUGET_KEY} "**/*.nupkg"
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}