From 0fc35d7c8f0a95d78b5fba936899d15908234371 Mon Sep 17 00:00:00 2001 From: ihourglass Date: Thu, 12 Sep 2024 02:18:51 +0800 Subject: [PATCH] Update github action for 6.0.0 --- .github/workflows/publish-prerelease.yml | 11 ++++++----- .github/workflows/publish-release-tag.yml | 13 +++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index d897ae7..5b437f2 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -73,9 +73,10 @@ jobs: $branchName = "${{ github.ref_name }}" if ($branchName -ne "pre/basic") { Gallery-Version -packageName "DependencyInjection.StaticAccessor" - } - if ($branchName -ne "pre/hosting") { - Gallery-Version -packageName "DependencyInjection.StaticAccessor.Hosting" + + if ($branchName -ne "pre/hosting") { + Gallery-Version -packageName "DependencyInjection.StaticAccessor.Hosting" + } } - name: Build Solution @@ -100,11 +101,11 @@ jobs: } if ($branchName -eq "pre/hosting") { - $pkgs = @("DependencyInjection.StaticAccessor.Hosting", "DependencyInjection.StaticAccessor.Blazor") + $pkgs = @("DependencyInjection.StaticAccessor.Hosting") } if ($branchName -eq "pre/basic") { - $pkgs = @("DependencyInjection.StaticAccessor", "DependencyInjection.StaticAccessor.Hosting", "DependencyInjection.StaticAccessor.Blazor", "DependencyInjection.StaticAccessor.Blazor.WebAssembly") + $pkgs = @("DependencyInjection.StaticAccessor", "DependencyInjection.StaticAccessor.Hosting") } foreach ($pkg in $pkgs) { diff --git a/.github/workflows/publish-release-tag.yml b/.github/workflows/publish-release-tag.yml index 7df4572..0dbf237 100644 --- a/.github/workflows/publish-release-tag.yml +++ b/.github/workflows/publish-release-tag.yml @@ -61,11 +61,12 @@ jobs: } $tagName = "${{ github.ref_name }}" - if ($tagName -ne "basic-") { + if ($tagName -notlike "basic-*") { Gallery-Version -packageName "DependencyInjection.StaticAccessor" - } - if ($tagName -ne "hosting-") { - Gallery-Version -packageName "DependencyInjection.StaticAccessor.Hosting" + + if ($tagName -notlike "hosting-*") { + Gallery-Version -packageName "DependencyInjection.StaticAccessor.Hosting" + } } - name: Build Solution @@ -93,11 +94,11 @@ jobs: } if ($tagName -like "hosting-*") { - $pkgs = @("DependencyInjection.StaticAccessor.Hosting", "DependencyInjection.StaticAccessor.Blazor") + $pkgs = @("DependencyInjection.StaticAccessor.Hosting") } if ($tagName -like "basic-*") { - $pkgs = @("DependencyInjection.StaticAccessor", "DependencyInjection.StaticAccessor.Hosting", "DependencyInjection.StaticAccessor.Blazor", "DependencyInjection.StaticAccessor.Blazor.WebAssembly") + $pkgs = @("DependencyInjection.StaticAccessor", "DependencyInjection.StaticAccessor.Hosting") } foreach ($pkg in $pkgs) {