Skip to content

GoFileSharp

GoFileSharp #11

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: Publish Nuget
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack ./GoFileSharp/GoFileSharp/GoFileSharp.csproj --configuration release --output ./ -p:OutputFileNamesWithoutVersion=true
- name: Publish
shell: bash
env:
NUGET_TOKEN: ${{ secrets.NUGET_API_TOKEN }}
run: dotnet nuget push ./GoFileSharp.nupkg -k "$NUGET_TOKEN" -s "https://api.nuget.org/v3/index.json"