Skip to content

chore(deps): update dependency dotnet-sdk to v9 #92

chore(deps): update dependency dotnet-sdk to v9

chore(deps): update dependency dotnet-sdk to v9 #92

Workflow file for this run

name: .NET
on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack -c Release -o out -p:ContinuousIntegrationBuild=true
- name: Push
run: dotnet nuget push *.nupkg -s nuget.org -k $NUGET_API_KEY
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
working-directory: out
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}