Skip to content

feat: add a sample test project #17

feat: add a sample test project

feat: add a sample test project #17

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 }}