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 SearchExtensions package to NuGet | |
on: | |
push: | |
branches: | |
- gha-nuget-test | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log version | |
run: echo "Building version ${{ github.ref }}" | |
- name: Show current directory | |
run: ls | |
- name: Change directory | |
run: cd NinjaNye.SearchExtensions | |
- name: Show current directory | |
run: ls -la | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build .\NinjaNye.SearchExtensions\NinjaNye.SearchExtensions.csproj -c Release --no-restore --verbosity minimal | |
- name: Unit Tests | |
run: dotnet test .\NinjaNye.SearchExtensions.Tests\ --no-restore --verbosity minimal | |
- name: Integration Tests | |
run: dotnet test .\NinjaNye.SearchExtensions.Tests.Integration\ --no-restore --verbosity minimal | |
# - name: Pack | |
# run: dotnet pack --configuration Release --no-build --output ../../nupkgs | |
# | |
# - name: Push to NuGet | |
# run: dotnet nuget push ../../nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate | |
# if: startsWith(github.ref, 'refs/tags/v') |