From f473425cd8e7b8eb075d261f06ae55a842d5be59 Mon Sep 17 00:00:00 2001 From: "harry.cpp" Date: Wed, 13 Mar 2024 11:52:59 +0100 Subject: [PATCH] try --- .github/workflows/main.yml | 6 +++--- build/DeployTasks/UploadArtifactsTask.cs | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b908236e5eb..ece50376957 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,9 +61,6 @@ jobs: packages: write contents: write steps: - - name: Expose GitHub Runtime - uses: crazy-max/ghaction-github-runtime@v3 - - name: Clone Repository uses: actions/checkout@v4 @@ -72,6 +69,9 @@ jobs: with: dotnet-version: '8.0.x' + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v3 + - name: Push GitHub Nugets run: dotnet run --project build/Build.csproj -- --target=DeployNuGetsToGithub env: diff --git a/build/DeployTasks/UploadArtifactsTask.cs b/build/DeployTasks/UploadArtifactsTask.cs index 33f9b921c33..bb9f4037151 100644 --- a/build/DeployTasks/UploadArtifactsTask.cs +++ b/build/DeployTasks/UploadArtifactsTask.cs @@ -14,6 +14,8 @@ public override async Task RunAsync(BuildContext context) PlatformFamily.OSX => "mac", _ => "linux" }; - await context.GitHubActions().Commands.UploadArtifact(context.NuGetsDirectory, $"nuget-{os}"); + // /home/runner/work/MonoGame/MonoGame/artifacts/NuGet/MonoGame.Templates.CSharp.3.8.1.151-harry-cpp.nupkg + // /home/runner/work/MonoGame/MonoGame/artifacts/NuGet not found. + await context.GitHubActions().Commands.UploadArtifact(new DirectoryPath(context.NuGetsDirectory.FullPath), $"nuget-{os}"); } }