Skip to content

Commit

Permalink
Update dotnet-core.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YairHalberstadt authored Dec 16, 2021
1 parent f5ac288 commit c0bfbbc
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ on:
description: Should this be a release or a preview package for Stronginject
required: true
default: 'false'
is_stronginject_extensions_dependencyinjection_release:
description: Should this be a release or a preview package for Stronginject.Extensions.DependencyInjection
required: true
default: 'false'
is_stronginject_extensions_dependencyinjection_aspnetcore_release:
description: Should this be a release or a preview package for Stronginject.Extensions.DependencyInjection.AspNetCore
required: true
default: 'false'

jobs:
build-test-push-release:
Expand Down Expand Up @@ -46,23 +38,14 @@ jobs:

- name: Pack Preview StrongInject
run: dotnet pack StrongInject/StrongInject.csproj -c Release --include-source -o out --version-suffix "CI-${{ steps.current-time.outputs.formattedTime }}"
dotnet pack StrongInject.Extensions.DependencyInjection/StrongInject.Extensions.DependencyInjection.csproj -c Release --include-source -o out --version-suffix "CI-${{ steps.current-time.outputs.formattedTime }}"
dotnet pack StrongInject.Extensions.DependencyInjection/StrongInject.Extensions.DependencyInjection.AspNetCore.csproj -c Release --include-source -o out --version-suffix "CI-${{ steps.current-time.outputs.formattedTime }}"
if: github.event.inputs.is_stronginject_release != 'true'
- name: Pack Preview StrongInject.Extensions.DependencyInjection
run: dotnet pack StrongInject.Extensions.DependencyInjection/StrongInject.Extensions.DependencyInjection.csproj -c Release --include-source -o out --version-suffix "CI-${{ steps.current-time.outputs.formattedTime }}"
if: github.event.inputs.is_stronginject_extensions_dependencyinjection_release != 'true'
- name: Pack Release StrongInject.Extensions.DependencyInjection.AspNetCore
run: dotnet pack StrongInject.Extensions.DependencyInjection.AspNetCore/StrongInject.Extensions.DependencyInjection.AspNetCore.csproj -c Release --include-source -o out
if: github.event.inputs.is_stronginject_extensions_dependencyinjection_aspnetcore_release != 'true'
- name: Pack Release StrongInject
run: dotnet pack StrongInject/StrongInject.csproj -c Release --include-source -o out
dotnet pack StrongInject.Extensions.DependencyInjection/StrongInject.Extensions.DependencyInjection.csproj -c Release --include-source -o out
dotnet pack StrongInject.Extensions.DependencyInjection.AspNetCore/StrongInject.Extensions.DependencyInjection.AspNetCore.csproj -c Release --include-source -o out
if: github.event.inputs.is_stronginject_release == 'true'
- name: Pack Release StrongInject.Extensions.DependencyInjection
run: dotnet pack StrongInject.Extensions.DependencyInjection/StrongInject.Extensions.DependencyInjection.csproj -c Release --include-source -o out
if: github.event.inputs.is_stronginject_extensions_dependencyinjection_release == 'true'
- name: Pack Release StrongInject.Extensions.DependencyInjection.AspNetCore
run: dotnet pack StrongInject.Extensions.DependencyInjection.AspNetCore/StrongInject.Extensions.DependencyInjection.AspNetCore.csproj -c Release --include-source -o out
if: github.event.inputs.is_stronginject_extensions_dependencyinjection_aspnetcore_release != 'true'

- name: Push
if: ${{ success() && github.ref == 'refs/heads/main' }}
run: |
Expand Down

0 comments on commit c0bfbbc

Please sign in to comment.