Skip to content

Commit

Permalink
Merge pull request #6 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Publish on Nuget
  • Loading branch information
ricaun authored Jan 12, 2022
2 parents 9676013 + 700e49d commit bb8f4cc
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
env:
GitHubToken: ${{ secrets.GITHUB_TOKEN }}

NugetApiUrl: "https://nuget.pkg.github.com/${{github.repository_owner}}/index.json"
NugetApiKey: ${{ secrets.GITHUB_TOKEN }}
NugetApiUrl: ${{ secrets.NUGET_API_URL }}
NugetApiKey: ${{ secrets.NUGET_API_KEY }}

SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
34 changes: 34 additions & 0 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"Folder": {
"type": "string"
},
"GitHubToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
Expand All @@ -37,6 +41,9 @@
"VSCode"
]
},
"IssConfiguration": {
"type": "string"
},
"MainName": {
"type": "string"
},
Expand All @@ -47,6 +54,14 @@
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"NugetApiKey": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
},
"NugetApiUrl": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
Expand All @@ -62,10 +77,21 @@
"type": "string"
}
},
"ReleasePackageBuilder": {
"type": "boolean"
},
"Root": {
"type": "string",
"description": "Root directory during build execution"
},
"SignFile": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
},
"SignPassword": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
},
"Skip": {
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
Expand All @@ -78,6 +104,7 @@
"CompileExample",
"GitRelease",
"Pack",
"PackageBuilder",
"Release",
"Sign"
]
Expand All @@ -99,11 +126,18 @@
"CompileExample",
"GitRelease",
"Pack",
"PackageBuilder",
"Release",
"Sign"
]
}
},
"VendorDescription": {
"type": "string"
},
"VendorId": {
"type": "string"
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
Expand Down
7 changes: 5 additions & 2 deletions Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
using ricaun.Nuke.Components;

[CheckBuildProjectConfigurations]
class Build : NukeBuild, IPublishPack, ICompileExample
class Build : NukeBuild, IPublishPack, ICompileExample, IRevitPackageBuilder
{
// string IHazExample.Folder => "Release";
string IHazPackageBuilderProject.Name => this.From<IHazExample>().Name;
string IHazRevitPackageBuilder.Application => "Revit.App";
bool IHazRevitPackageBuilder.NewVersions => true;
bool IHazExample.ReleaseExample => false;
public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
}
1 change: 1 addition & 0 deletions Build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

<ItemGroup>
<PackageReference Include="ricaun.Nuke" Version="*" />
<PackageReference Include="ricaun.Nuke.PackageBuilder" Version="*" />
</ItemGroup>

<ItemGroup>
Expand Down
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.0.4] / 2022-01-12
- Add NugetApiUrl & NugetApiKey
- Update Readme
- Update Build Project

## [0.0.3] / 2021-12-21
- Add TickNumber
- Remove Package Create on Debug
Expand Down Expand Up @@ -37,7 +42,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add AutodeskExtension
- First Release

[vNext]: https://github.com/ricaun-io/ricaun.Revit.UI/compare/1.0.0...HEAD
[0.0.3]: https://github.com/ricaun-io/ricaun.Revit.UI/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/ricaun-io/ricaun.Revit.UI/compare/0.0.1...0.0.2
[0.0.1]: https://github.com/ricaun-io/ricaun.Revit.UI/compare/0.0.1
[vNext]: ../../compare/1.0.0...HEAD
[0.0.4]: ../../compare/0.0.3...0.0.4
[0.0.3]: ../../compare/0.0.2...0.0.3
[0.0.2]: ../../compare/0.0.1...0.0.2
[0.0.1]: ../../compare/0.0.1
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# ricaun.Revit.UI

[![Publish](https://github.com/ricaun-io/ricaun.Revit.UI/actions/workflows/Publish.yml/badge.svg)](https://github.com/ricaun-io/ricaun.Revit.UI/actions)
[![Develop](https://github.com/ricaun-io/ricaun.Revit.UI/actions/workflows/Develop.yml/badge.svg)](https://github.com/ricaun-io/ricaun.Revit.UI/actions)
[![Publish](../../actions/workflows/Publish.yml/badge.svg)](../../actions)
[![Develop](../../actions/workflows/Develop.yml/badge.svg)](../../actions)
[![Release](https://img.shields.io/nuget/v/ricaun.Revit.UI?logo=nuget&label=release&color=blue)](https://www.nuget.org/packages/ricaun.Revit.UI)

---

Expand Down
27 changes: 1 addition & 26 deletions ricaun.Revit.UI.Example/ricaun.Revit.UI.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- Release -->
<PropertyGroup Condition="!$(Configuration.Contains('Debug'))">
<Optimize>true</Optimize>
<OutputPath>bin\Release\$(RevitVersion)</OutputPath>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>Revit$(RevitVersion)</DefineConstants>
<NoWarn>MSB3052</NoWarn>
<DebugType>None</DebugType>
Expand All @@ -84,34 +84,9 @@
<PropertyGroup>
<PackageAssemblyVersion>.$(Version)</PackageAssemblyVersion>
</PropertyGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<PropertyGroup>
<VersionSuffix>5</VersionSuffix>
</PropertyGroup>
</Target>

<Target Name="AfterBuild" >
<PropertyGroup>
<VersionSuffix>5</VersionSuffix>
</PropertyGroup>
</Target>

<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
<Revision>$([MSBuild]::Divide($([System.DateTime]::get_Now().get_TimeOfDay().get_TotalSeconds()), 4).ToString('F0'))</Revision>
<Version>$(Version).$(Revision)</Version>
<!--
<Version>$(Version).$([System.DateTime]::UtcNow.ToString(mmff))</Version>
<Deterministic>False</Deterministic>
<VersionSuffix>1.0.0.$([System.DateTime]::UtcNow.ToString(mmff))</VersionSuffix>
<AssemblyVersion Condition=" '$(VersionSuffix)' == '' ">0.0.0.1</AssemblyVersion>
<AssemblyVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</AssemblyVersion>
<Version Condition=" '$(VersionSuffix)' == '' ">0.0.1.0</Version>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
-->
<PackageAssemblyVersion>.Dev.$(Version)</PackageAssemblyVersion>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions ricaun.Revit.UI/ricaun.Revit.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- Release -->
<PropertyGroup Condition="!$(Configuration.Contains('Debug'))">
<Optimize>true</Optimize>
<OutputPath>bin\Release\$(RevitVersion)</OutputPath>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>Revit$(RevitVersion)</DefineConstants>
<NoWarn>MSB3052</NoWarn>
<DebugType>None</DebugType>
Expand All @@ -77,7 +77,7 @@

<PropertyGroup>
<PackageId>ricaun.Revit.UI</PackageId>
<Version>0.0.3</Version>
<Version>0.0.4</Version>
<ProjectGuid>{2064ba4d-5527-41e9-8b76-0cbfefa35900}</ProjectGuid>
</PropertyGroup>

Expand Down

0 comments on commit bb8f4cc

Please sign in to comment.