Skip to content

Update(s)

Update(s) #8

Workflow file for this run

name: Publish
on:
push:
branches:
- master
workflow_dispatch: {}
jobs:
tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
publish:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build Intercom/Intercom.csproj --no-restore --configuration Release
- name: Publish
uses: laget-se/publish-nuget@v2.7.2
with:
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUSPEC_FILE: Intercom.nuspec
PROJECT_FILE_PATH: Intercom/Intercom.csproj
VERSION_STATIC: "0.1.${{github.run_number}}-alpha"