Skip to content

Replace NuGet tag to Embedded, to exclude from search #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .build/Pipelines/GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@
// Continuous Integration: Validate pull requests
[GitHubActions(
"pr-validation",
GitHubActionsImage.UbuntuLatest,
GitHubActionsImage.WindowsLatest,
InvokedTargets = [
nameof(Solution_Build),
],
OnPullRequestBranches = ["master"]
OnPullRequestBranches = ["main"]
)]
[SuppressMessage("ReSharper", "CheckNamespace")]

// CI/CD targets
[SuppressMessage("ReSharper", "CheckNamespace")]
partial class Build
{
Target UpdateYaml => _ => _.Executes(() => Log.Information("Generating YAML..."));
Expand Down
1 change: 1 addition & 0 deletions .build/Targets/Solution_Targets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.IO;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ name: pr-validation
on:
pull_request:
branches:
- master
- main

jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.vs/
.vscode/
.idea
.nuke/
.nuke/temp/
[Bb]in/
[Oo]bj/
packages/
Expand Down
138 changes: 138 additions & 0 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"Configuration": {
"type": "string",
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
"enum": [
"Debug",
"Release"
]
},
"ExtensionLibVersion": {
"type": "string",
"description": "Extension library version"
},
"ExtensionName": {
"type": "string",
"description": "Extension library name"
},
"PushApiKey": {
"type": "string",
"description": "NuGet push API key"
},
"SharedLibVersion": {
"type": "string",
"description": "Shared library version"
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
}
},
"definitions": {
"Host": {
"type": "string",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"ExecutableTarget": {
"type": "string",
"enum": [
"Extension_Build",
"Extension_FindNextVersion",
"Extension_Push",
"Shared_Build",
"Shared_FindNextVersion",
"Shared_Push",
"Solution_Build",
"Solution_Clean",
"Solution_Restore",
"UpdateYaml"
]
},
"Verbosity": {
"type": "string",
"description": "",
"enum": [
"Verbose",
"Normal",
"Minimal",
"Quiet"
]
},
"NukeBuild": {
"properties": {
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
},
"Host": {
"description": "Host for execution. Default is 'automatic'",
"$ref": "#/definitions/Host"
},
"NoLogo": {
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
},
"Plan": {
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"Profile": {
"type": "array",
"description": "Defines the profiles to load",
"items": {
"type": "string"
}
},
"Root": {
"type": "string",
"description": "Root directory during build execution"
},
"Skip": {
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"$ref": "#/definitions/ExecutableTarget"
}
},
"Target": {
"type": "array",
"description": "List of targets to be invoked. Default is '{default_target}'",
"items": {
"$ref": "#/definitions/ExecutableTarget"
}
},
"Verbosity": {
"description": "Logging verbosity during build execution. Default is 'Normal'",
"$ref": "#/definitions/Verbosity"
}
}
}
},
"$ref": "#/definitions/NukeBuild"
}
4 changes: 4 additions & 0 deletions .nuke/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "build.schema.json",
"Solution": "RestApia.Shared.sln"
}
Empty file modified build.cmd
100644 → 100755
Empty file.
6 changes: 0 additions & 6 deletions nuget.config

This file was deleted.

1 change: 0 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
</PackageReference>
<AdditionalFiles Include="$(SolutionDir)/src/stylecop.json"/>
</ItemGroup>

</Project>
18 changes: 8 additions & 10 deletions src/Extensions/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,21 @@
<RepositoryUrl>https://github.com/RestApia/RestApia.Shared</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>RestApia, Extension</PackageTags>
</PropertyGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<Target Name="PublishToLocal" AfterTargets="Pack" Condition="'$(Configuration)' == 'Debug'">
<ItemGroup>
<NuGetPackages Include="$(PackageOutputPath)*.nupkg"/>
</ItemGroup>
<Message Text="NuGetPackages: @(NuGetPackages)" Importance="high"/>
<Copy SourceFiles="@(NuGetPackages)" DestinationFolder="$(ProjectDir)..\..\..\.local\nugets"/>
</Target>

<ItemGroup>
<PackageReference Include="RestApia.Shared" Version="1.0.4" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<ProjectReference Include="..\..\RestApia.Shared\RestApia.Shared.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' != 'Debug'">
<PackageReference Include="RestApia.Shared" Version="1.*" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<Title>Basic Authorization extension</Title>
<Description>Generate Authorization header based on settings for requests.</Description>
<RepositoryUrl>https://github.com/RestApia/RestApia.Shared/tree/main/src/Extensions/RestApia.Extensions.Auth.Basic</RepositoryUrl>
<Version>1.0.6</Version>
<PackageTags>RestApiaEmbedded, Extension</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<PropertyGroup>
<Title>OAuth2 Authorization extension</Title>
<Description>Extension provides OAuth2 Implicit and AuthCode authorizations</Description>
<Version>1.0.6</Version>
<RepositoryUrl>https://github.com/RestApia/RestApia.Shared/tree/main/src/Extensions/RestApia.Extensions.Auth.OAuth2</RepositoryUrl>
<PackageTags>RestApiaEmbedded, Extension</PackageTags>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions src/RestApia.Shared/RestApia.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,4 @@
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<Target Name="PublishToLocal" AfterTargets="Pack" Condition="'$(Configuration)' == 'Debug'">
<ItemGroup>
<NuGetPackages Include="$(PackageOutputPath)RestApia.Shared.*.nupkg"/>
</ItemGroup>
<Message Text="NuGetPackages: @(NuGetPackages)" Importance="high"/>
<Copy SourceFiles="@(NuGetPackages)" DestinationFolder="$(ProjectDir)..\..\.local\nugets"/>
</Target>
</Project>
Loading