Skip to content

Commit

Permalink
Prerelease - alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Jan 10, 2024
1 parent 0e72a1d commit 59e0929
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 43 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/Publish.yml → .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
# ------------------------------------------------------------------------------
# Publish.yml
# Build.yml
# ------------------------------------------------------------------------------

name: Publish
name: Build

on:
push:
branches:
pull_request:
branches-ignore:
- master
- main
workflow_dispatch:

jobs:
Publish:
name: Publish
Build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v1

- name: Run './build/build.cmd'
run: ./build/build.cmd --root ./build
env:
GitHubToken: ${{ secrets.GITHUB_TOKEN }}

NugetApiUrl: ${{ secrets.NUGET_API_URL }}
NugetApiKey: ${{ secrets.NUGET_API_KEY }}

SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
InstallationFiles: ${{ secrets.INSTALLATION_FILES }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
25 changes: 0 additions & 25 deletions .github/workflows/Develop.yml

This file was deleted.

26 changes: 24 additions & 2 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Build Schema",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"type": "object",
Expand Down Expand Up @@ -54,6 +54,9 @@
"MainName": {
"type": "string"
},
"MiddleVersions": {
"type": "boolean"
},
"NewVersions": {
"type": "boolean"
},
Expand All @@ -77,6 +80,12 @@
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"PreReleaseFilter": {
"type": "array",
"items": {
"type": "string"
}
},
"Profile": {
"type": "array",
"description": "Defines the profiles to load",
Expand All @@ -87,12 +96,18 @@
"ProjectNameFolder": {
"type": "boolean"
},
"ProjectRemoveTargetFrameworkFolder": {
"type": "boolean"
},
"ProjectVersionFolder": {
"type": "boolean"
},
"ReleaseBundle": {
"type": "boolean"
},
"ReleaseFolder": {
"type": "string"
},
"ReleaseNameVersion": {
"type": "boolean"
},
Expand Down Expand Up @@ -120,9 +135,11 @@
"Build",
"Clean",
"Compile",
"GitPreRelease",
"GitRelease",
"Pack",
"PackageBuilder",
"PrePack",
"Release",
"Sign"
]
Expand All @@ -141,14 +158,19 @@
"Build",
"Clean",
"Compile",
"GitPreRelease",
"GitRelease",
"Pack",
"PackageBuilder",
"PrePack",
"Release",
"Sign"
]
}
},
"UnlistNuget": {
"type": "boolean"
},
"VendorDescription": {
"type": "string"
},
Expand All @@ -168,4 +190,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublishPack, IRevitPackageBuilder
class Build : NukeBuild, IPublishPack, IRevitPackageBuilder, IPrePack
{
string IHazPackageBuilderProject.Name => "Example";
string IHazRevitPackageBuilder.Application => "Revit.App";
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.4.1] / 2024-01-10
### Features
- Add `netstandar2.0` support

## [0.4.0] / 2023-01-31
### Features
- `ricaun.Revit.Github` without Revit Reference.
Expand Down Expand Up @@ -50,6 +54,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add Example

[vNext]: ../../compare/1.0.0...HEAD
[0.4.1]: ../../compare/0.4.0...0.4.1
[0.4.0]: ../../compare/0.3.0...0.4.0
[0.3.0]: ../../compare/0.2.0...0.3.0
[0.2.0]: ../../compare/0.1.0...0.2.0
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.4.0</Version>
<Version>0.4.1-alpha</Version>
</PropertyGroup>
</Project>
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
[![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..)
[![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/)
[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Publish](../../actions/workflows/Publish.yml/badge.svg)](../../actions)
[![Develop](../../actions/workflows/Develop.yml/badge.svg)](../../actions)
[![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions)
[![Release](https://img.shields.io/nuget/v/ricaun.Revit.Github?logo=nuget&label=release&color=blue)](https://www.nuget.org/packages/ricaun.Revit.Github)

The `ricaun.Revit.Github` allows downloading bundle files in Autodesk format from Github and unpacking the `zip` in the installed bundle folder.
Expand Down
12 changes: 7 additions & 5 deletions ricaun.Revit.Github/ricaun.Revit.Github.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net45</TargetFramework>
<TargetFrameworks>net45;netstandard2.0;net6.0</TargetFrameworks>
<OutputType>Library</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseWPF>true</UseWPF>
<LangVersion>Latest</LangVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<Configurations>Debug; Release</Configurations>
</PropertyGroup>
Expand Down Expand Up @@ -63,6 +62,7 @@
<RepositoryUrl>https://github.com/$(GitHubRepositoryOwner)/$(PackageId)</RepositoryUrl>
<RepositoryType>github</RepositoryType>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIconUrl />
</PropertyGroup>

Expand Down Expand Up @@ -97,10 +97,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.*"/>
<PackageReference Include="Newtonsoft.Json" Version="9.*">
<NoWarn>NU1903</NoWarn>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
<Reference Include="System.Net.Http" />
<Reference Include="System.IO.Compression" />
</ItemGroup>
Expand Down

0 comments on commit 59e0929

Please sign in to comment.