NuGet Push #2
This file contains hidden or 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: NuGet Push | |
on: | |
workflow_dispatch: | |
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@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build and Publish | |
run: | | |
cd ./src/Nest.OData/ | |
dotnet pack -c Release -o artifacts -p:PackageVersion=1.0.1 | |
- name: Push | |
run: dotnet nuget push ./src/Nest.OData/artifacts/Nest.OData.1.0.1.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json | |
- name: Build and Publish v7 | |
run: | | |
cd ./src/Nest.OData/ | |
dotnet pack -c Release_V7 -o artifacts_v7 -p:PackageVersion=1.0.1 -p:PackageId=Nest.OData.v7 | |
- name: Push v7 | |
run: dotnet nuget push ./src/Nest.OData/artifacts_v7/Nest.OData.v7.1.0.1.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json |