You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: 'SourceCrafter.HttpServiceClientGenerator: Build, Test and Deploy'
on:
push:
branches: [ "**" ]
jobs:
build:
name: .NET 7 Build
runs-on: 'ubuntu-latest'
steps:
- name: Get source code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test SourceCrafter.HttpServiceClientGenerator.UnitTests/SourceCrafter.HttpServiceClientGenerator.UnitTests.csproj --verbosity normal -c Release
- name: Pack
if: github.ref_name == 'dev'
run: |
without_comma=$(echo "${{ github.event.head_commit.message }}" | sed 's/,/\\u002C/g')
dotnet pack SourceCrafter.HttpServiceClientGenerator/SourceCrafter.HttpServiceClientGenerator.csproj --verbosity normal -c Pack /p:PackageReleaseNotes="$without_comma"