Skip to content

v3.1.103

v3.1.103 #61

Workflow file for this run

name: Publish Dotnet Packages To Nuget
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '2.1.x'
- name: Build packages
run: |
version=$(cat VERSION)
echo "version is ${version}, packing to release..."
dotnet pack -c Release /p:PackageVersion="${version}"
find . -type f -name "*.nupkg" -exec cp {} . \;
- name: Publish packages
run: dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --source https://api.nuget.org/v3/index.json --timeout 300 --skip-duplicate
env:
API_KEY: ${{ secrets.API_KEY }}