Skip to content

Update dotnet.yml

Update dotnet.yml #54

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Update NuGet package
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
defaults:
run:
working-directory: ./TimeLogging.Grpc
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Pack
run: dotnet pack --configuration Release
- name: Publish
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push "bin/Release/TimeLogging.Interfaces.*.nupkg" -k $TOKEN -s https://nuget.pkg.github.com/czprz/index.json --skip-duplicate --no-symbols true