From 59075afc7d5a8987b21e25cfacac9ead0ca930f9 Mon Sep 17 00:00:00 2001 From: Kouji Matsui Date: Sun, 12 Jun 2022 19:04:04 +0900 Subject: [PATCH] Testing GA script. --- .github/workflows/build-linux.yaml | 8 ++++---- .github/workflows/build-windows.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index c452329e..8d5ad7dc 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -115,8 +115,8 @@ jobs: #---------------------------------------------------------------------- - #- name: Deploy NuGet package (devel/il2c-devel) - # if: startsWith( github.ref, 'refs/tags/' ) + #- name: Deploy NuGet package (Release/devel/il2c-devel) + # if: (env.buildConfiguration == 'Release') && (startsWith(github.ref, 'refs/tags/')) # run: | # dotnet nuget push artifacts/IL2C.Interop.*.nupkg --source il2c-devel --api-key ${{secrets.GH_IL2C_NUGET_MYGET_KEY}} # dotnet nuget push artifacts/IL2C.Core.*.nupkg --source il2c-devel --api-key ${{secrets.GH_IL2C_NUGET_MYGET_KEY}} @@ -125,8 +125,8 @@ jobs: #---------------------------------------------------------------------- - #- name: Deploy NuGet package (master/nuget.org) - # if: (startsWith( github.ref, 'refs/tags/' )) && (endsWith(steps.extract_branch_name.outputs.branch_name, 'master')) + #- name: Deploy NuGet package (Release/master/nuget.org) + # if: (env.buildConfiguration == 'Release') && (startsWith(github.ref, 'refs/tags/')) && (endsWith(steps.extract_branch_name.outputs.branch_name, 'master')) # run: | # dotnet nuget push artifacts/IL2C.Interop.*.nupkg --source nuget.org --api-key ${{secrets.GH_IL2C_NUGET_NUGET_KEY}} # dotnet nuget push artifacts/IL2C.Core.*.nupkg --source nuget.org --api-key ${{secrets.GH_IL2C_NUGET_NUGET_KEY}} diff --git a/.github/workflows/build-windows.yaml b/.github/workflows/build-windows.yaml index ec3d845d..51d79290 100644 --- a/.github/workflows/build-windows.yaml +++ b/.github/workflows/build-windows.yaml @@ -118,8 +118,8 @@ jobs: #---------------------------------------------------------------------- - - name: Deploy NuGet package (devel/il2c-devel) - if: startsWith( github.ref, 'refs/tags/' ) + - name: Deploy NuGet package (Release/devel/il2c-devel) + if: (env.buildConfiguration == 'Release') && (startsWith(github.ref, 'refs/tags/')) run: | dotnet nuget push artifacts\IL2C.Interop.*.nupkg --source il2c-devel --api-key ${{secrets.GH_IL2C_NUGET_MYGET_KEY}} dotnet nuget push artifacts\IL2C.Core.*.nupkg --source il2c-devel --api-key ${{secrets.GH_IL2C_NUGET_MYGET_KEY}} @@ -128,8 +128,8 @@ jobs: #---------------------------------------------------------------------- - #- name: Deploy NuGet package (master/nuget.org) - # if: (startsWith( github.ref, 'refs/tags/' )) && (endsWith(steps.extract_branch_name.outputs.branch_name, 'master')) + #- name: Deploy NuGet package (Release/master/nuget.org) + # if: (env.buildConfiguration == 'Release') && (startsWith(github.ref, 'refs/tags/')) && (endsWith(steps.extract_branch_name.outputs.branch_name, 'master')) # run: | # dotnet nuget push artifacts\IL2C.Interop.*.nupkg --source nuget.org --api-key ${{secrets.GH_IL2C_NUGET_NUGET_KEY}} # dotnet nuget push artifacts\IL2C.Core.*.nupkg --source nuget.org --api-key ${{secrets.GH_IL2C_NUGET_NUGET_KEY}}