Skip to content

Change to linux paths. #6

Change to linux paths.

Change to linux paths. #6

Workflow file for this run

name: Deploy to nuget
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
env:
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace}}/output
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{github.ref_name}} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY}}
- name: Push
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY}}/*.nupkg -k ${{secrets.NUGET_AUTH_TOKEN}} -s ${{ env.NUGET_SOURCE_URL}}