Update search package references. #8
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 to NuGet | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: src | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'SenseNet.Packages.slnf' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install dependencies | |
run: dotnet restore ${{env.SOLUTION}} | |
- name: Build | |
run: dotnet build ${{env.SOLUTION}} --configuration Release --no-restore | |
- name: Pack nugets | |
run: dotnet pack ${{env.SOLUTION}} -c Release --no-build --output . | |
- name: Push to NuGet | |
run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json | |