Adjustments to facilitate localhost captures #10
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: Build and publish | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore -c Release | |
- name: Publish FauCap nuget | |
uses: rohith/publish-nuget@v2 | |
if: github.event_name != 'pull_request' | |
with: | |
PROJECT_FILE_PATH: FauCap/FauCap.csproj | |
PACKAGE_NAME: FauCap | |
NUGET_KEY: ${{secrets.TMW_NUGET}} | |
- name: Publish FauCap Parser nuget | |
uses: rohith/publish-nuget@v2 | |
if: github.event_name != 'pull_request' | |
with: | |
PROJECT_FILE_PATH: FauCapParser/FauCapParser.csproj | |
PACKAGE_NAME: FauCapParser | |
NUGET_KEY: ${{secrets.TMW_NUGET}} |