diff --git a/.github/workflows/BuildAndPack.yml b/.github/workflows/BuildAndPack.yml index 60e5a5e3..490d4733 100644 --- a/.github/workflows/BuildAndPack.yml +++ b/.github/workflows/BuildAndPack.yml @@ -55,9 +55,9 @@ jobs: GithubToken: ${{ secrets.GITHUB_TOKEN }} NuGetToken: ${{ secrets.NUGET_TOKEN }} MSBuildEnableWorkloadResolver: false - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: - name: artifacts + name: artifacts-linux path: artifacts windows-latest: name: windows-latest @@ -86,9 +86,9 @@ jobs: GithubToken: ${{ secrets.GITHUB_TOKEN }} NuGetToken: ${{ secrets.NUGET_TOKEN }} MSBuildEnableWorkloadResolver: false - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: - name: artifacts + name: artifacts-windows path: artifacts macOS-latest: name: macOS-latest @@ -117,7 +117,7 @@ jobs: GithubToken: ${{ secrets.GITHUB_TOKEN }} NuGetToken: ${{ secrets.NUGET_TOKEN }} MSBuildEnableWorkloadResolver: false - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: - name: artifacts + name: artifacts-macos path: artifacts diff --git a/build/Build.cs b/build/Build.cs index 39bb2c91..1d1699ff 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -12,20 +12,7 @@ using static Nuke.Common.IO.PathConstruction; using static Nuke.Common.Tools.DotNet.DotNetTasks; -[CheckBuildProjectConfigurations] [ShutdownDotNetAfterServerBuild] -[GitHubActions("BuildAndPack", - GitHubActionsImage.UbuntuLatest, - GitHubActionsImage.WindowsLatest, - GitHubActionsImage.MacOsLatest, - ImportGitHubTokenAs = nameof(GithubToken), - OnPushTags = new [] {"*"}, - OnPushBranches = new[] {"master", "main"}, - OnPullRequestBranches = new[] {"*"}, - AutoGenerate = false, - ImportSecrets = new[] {nameof(NuGetToken)}, - InvokedTargets = new[] {nameof(Clean), nameof(Test), nameof(TestPackages), nameof(PushToNuGet)} -)] class Build : NukeBuild { /// Support plugins are available for: