Skip to content

Commit

Permalink
Removes publishing demo on build
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Mar 24, 2024
1 parent 4736c33 commit 08afddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions build/BuildOnPipelines.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
Expand All @@ -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);
Expand Down

0 comments on commit 08afddd

Please sign in to comment.