v3.1.122 #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |