From 08afddde1ddaff52ea19be71436e05d83c96dcfe Mon Sep 17 00:00:00 2001 From: SKProCH Date: Mon, 25 Mar 2024 02:06:47 +0300 Subject: [PATCH] Removes publishing demo on build --- .github/workflows/release.yml | 2 ++ build/BuildOnPipelines.cs | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ea54f97..1957bfe5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,8 @@ jobs: .nuke/temp ~/.nuget/packages key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} + - name: 'Install workload: wasm-tools' + run: dotnet workload install wasm-tools - name: 'Run: PublishRelease' run: ./build.cmd PublishRelease env: diff --git a/build/BuildOnPipelines.cs b/build/BuildOnPipelines.cs index 89186c01..4c555f95 100644 --- a/build/BuildOnPipelines.cs +++ b/build/BuildOnPipelines.cs @@ -43,7 +43,6 @@ partial class Build { .Unlisted() .OnlyWhenDynamic(() => Parameters.NugetApiKey is not null) .OnlyWhenDynamic(() => Parameters.ShouldPublishNugetPackages) - .DependsOn(PackDemoApp) .DependsOn(PublishNugetPackages) .Executes(async () => { var tagName = $"v{Parameters.Version}"; @@ -70,8 +69,7 @@ partial class Build { }; var release = await GitHubTasks.GitHubClient.Repository.Release.Create(owner, name, newRelease); var nugetArtifacts = NugetRoot.GetFiles("*.nupkg").ToImmutableArray(); - var artifacts = nugetArtifacts.Concat(DemoDir.GetFiles()); - foreach (var artifactPath in artifacts) { + foreach (var artifactPath in nugetArtifacts) { Log.Information("Uploading new release {TagName} asset: {AssetName}", tagName, artifactPath.Name); await using var fileStream = File.OpenRead(artifactPath); var releaseAssetUpload = new ReleaseAssetUpload(artifactPath.Name, "application/octet-stream", fileStream, null);