Skip to content

upgrade Dotnet runtime version to 9.0 #38

upgrade Dotnet runtime version to 9.0

upgrade Dotnet runtime version to 9.0 #38

Workflow file for this run

name: Publish Nuget Package
on:
push:
branches:
- main
pull_request:
types: [closed]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Update NuGet package
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v4
with:
source-url: https://api.nuget.org/v3/index.json
dotnet-version: 9.x.x
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
- name: Build solution and generate NuGet package
run: |
cd ExcelToDotnet
dotnet pack -c Release -o out
- name: Push generated package to GitHub registry
run: dotnet nuget push ./ExcelToDotnet/out/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json