Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Aug 3, 2020
1 parent 1970691 commit e2e3f3b
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/release-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- release/configjson-*
- release/di-*
- release/swagger-*
- release/swaggercore-*

jobs:
build_test_package_release:
Expand Down Expand Up @@ -89,12 +90,21 @@ jobs:
dotnet build ./src/Aliencube.AzureFunctions.Extensions.DependencyInjection -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
dotnet build ./test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests -c Release
- name: Build solution for OpenApi Core
if: steps.release.outputs.module == 'swaggercore'
shell: pwsh
run: |
dir
dotnet build ./src/Aliencube.AzureFunctions.Extensions.OpenApi.Core -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
dotnet build ./test/Aliencube.AzureFunctions.Extensions.OpenApi.Core.Tests -c Release
- name: Build solution for OpenApi
if: steps.release.outputs.module == 'swagger'
shell: pwsh
run: |
dir
dotnet build . -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
dotnet build ./src/Aliencube.AzureFunctions.Extensions.OpenApi -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
dotnet build ./test/Aliencube.AzureFunctions.Extensions.OpenApi.Tests -c Release
- name: Test solution for AppSettings
if: steps.release.outputs.module == 'appsettings'
Expand All @@ -117,12 +127,19 @@ jobs:
dir
dotnet test ./test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests -c Release
- name: Test solution for OpenApi Core
if: steps.release.outputs.module == 'swaggercore'
shell: pwsh
run: |
dir
dotnet test ./test/Aliencube.AzureFunctions.Extensions.OpenApi.Core.Tests -c Release
- name: Test solution for OpenApi
if: steps.release.outputs.module == 'swagger'
shell: pwsh
run: |
dir
dotnet test . -c Release
dotnet test ./test/Aliencube.AzureFunctions.Extensions.OpenApi.Tests -c Release
- name: List Package for AppSettings
if: steps.release.outputs.module == 'appsettings'
Expand Down Expand Up @@ -157,6 +174,17 @@ jobs:
echo "::set-env name=PACKAGE_PATH::$path"
echo "::set-env name=PACKAGE_NAME::$name"
- name: List Package for OpenApi Core
if: steps.release.outputs.module == 'swaggercore'
shell: pwsh
run: |
$package = Get-ChildItem -Path ./src/*.OpenApi.Core -Include *.nupkg -Recurse | Where-Object { $_.FullName -like "*${{ steps.release.outputs.version }}*" }
$path = $package[0].FullName
$name = $package[0].Name
echo "::set-env name=PACKAGE_PATH::$path"
echo "::set-env name=PACKAGE_NAME::$name"
- name: List Package for OpenApi
if: steps.release.outputs.module == 'swagger'
shell: pwsh
Expand Down

0 comments on commit e2e3f3b

Please sign in to comment.