Skip to content

Commit 5c9982e

Browse files
authored
Merge pull request #135 from nils-a/release/1.1.0
Release/1.1.0
2 parents 9f7cedb + 05f1400 commit 5c9982e

26 files changed

+554
-69
lines changed

.appveyor.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
#---------------------------------#
22
# Build Image #
33
#---------------------------------#
4-
image: Visual Studio 2019
4+
image: Visual Studio 2022
5+
6+
#---------------------------------#
7+
# Install .NET #
8+
#---------------------------------#
9+
install:
10+
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
11+
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
12+
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
13+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 2.1 -InstallDir $env:DOTNET_INSTALL_DIR'
14+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 3.1 -InstallDir $env:DOTNET_INSTALL_DIR'
15+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 5.0 -InstallDir $env:DOTNET_INSTALL_DIR'
16+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 6.0 -InstallDir $env:DOTNET_INSTALL_DIR'
17+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 7.0 -InstallDir $env:DOTNET_INSTALL_DIR'
18+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 8.0 -InstallDir $env:DOTNET_INSTALL_DIR'
19+
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
20+
- ps: dotnet --info
521

622
#---------------------------------#
723
# Build Script #

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "0.38.5",
6+
"version": "1.3.0",
77
"commands": [
88
"dotnet-cake"
99
]

.editorconfig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ root = true
55

66
[*]
77
end_of_line = CRLF
8+
trim_trailing_whitespace = true
89

9-
[*.ps1]
10-
indent_style = space
11-
indent_size = 4
10+
[*.md]
11+
trim_trailing_whitespace = false
1212

13-
[*.cs]
13+
[*.{bat,ps1}]
14+
charset = utf-8-bom
15+
end_of_line = crlf
1416
indent_style = space
1517
indent_size = 4
1618

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/renovate.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>cake-contrib/renovate-presets:cake-recipe",
5+
"github>cake-contrib/renovate-presets:github-actions" ],
6+
"packageRules": [
7+
{
8+
"description": "Updates to Cake.Core references are breaking.",
9+
"matchPackageNames": ["Cake.Core"],
10+
"matchUpdateTypes": ["major"],
11+
"labels": ["Breaking Change"]
12+
}
13+
]
14+
}

.github/workflows/build.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- "feature/**"
9+
- "release/**"
10+
- "hotfix/**"
11+
tags:
12+
- "*"
13+
paths-ignore:
14+
- "README.md"
15+
pull_request:
16+
17+
jobs:
18+
build:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [windows-2022, ubuntu-22.04, macos-12]
23+
24+
env:
25+
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
26+
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
27+
AZURE_USER: ${{ secrets.AZURE_USER }}
28+
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
29+
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
30+
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
31+
GPR_USER: ${{ secrets.GPR_USER }}
32+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
33+
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
34+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
35+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
36+
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
37+
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
38+
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
39+
WYAM_DEPLOY_BRANCH: "gh-pages"
40+
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
41+
42+
steps:
43+
- name: Checkout the repository
44+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
45+
46+
- name: Fetch all tags and branches
47+
run: git fetch --prune --unshallow
48+
49+
- name: Cache Tools
50+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
51+
with:
52+
path: tools
53+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }}
54+
55+
# install libgit2-dev on ubuntu, so libgit2sharp works
56+
- name: Install libgit-dev
57+
if: runner.os == 'Linux'
58+
run: sudo apt-get install -y libgit2-dev
59+
60+
- name: Setup required dotnet versions
61+
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
62+
with:
63+
dotnet-version: |
64+
2.1.818
65+
3.1.x
66+
5.0.x
67+
6.0.x
68+
7.0.x
69+
8.0.x
70+
71+
- name: Build project
72+
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
73+
with:
74+
script-path: recipe.cake
75+
target: CI
76+
verbosity: Normal
77+
cake-version: tool-manifest
78+
79+
- name: Upload Issues-Report
80+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
81+
with:
82+
if-no-files-found: warn
83+
name: ${{ matrix.os }} Issues
84+
path: BuildArtifacts/report.html
85+
86+
- name: Upload Packages
87+
if: runner.os == 'Windows'
88+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
89+
with:
90+
if-no-files-found: warn
91+
name: package
92+
path: BuildArtifacts/Packages/**/*

.github/workflows/release-notes.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@ jobs:
1111

1212
steps:
1313
- name: Checkout the requested branch
14-
uses: actions/checkout@v2.3.4
14+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515
- name: Fetch all tags and branches
1616
run: git fetch --prune --unshallow
1717
- name: Cache Tools
18-
uses: actions/cache@v2.1.4
18+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
1919
with:
2020
path: tools
2121
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
2222
- name: Set up git version
2323
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
24-
uses: gittools/actions/gitversion/setup@v0.9.9
24+
uses: gittools/actions/gitversion/setup@dcb17efb49ec7f20efdebce79cc397a3952c63db # v1.2.0
2525
with:
2626
versionSpec: "5.x"
2727
- name: Run git version
2828
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
2929
id: gitversion
30-
uses: gittools/actions/gitversion/execute@v0.9.9
30+
uses: gittools/actions/gitversion/execute@dcb17efb49ec7f20efdebce79cc397a3952c63db # v1.2.0
3131
- name: Create release branch ${{ github.event.inputs.version }}
3232
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
3333
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
3434
- name: Push new branch
3535
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
36-
uses: ad-m/github-push-action@v0.6.0
36+
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
3737
with:
3838
branch: "release/${{ steps.gitversion.outputs.majorMinorPatch }}"
3939
github_token: ${{ secrets.GH_TOKEN }}
4040
- name: Drafting Release Notes
41-
uses: cake-build/cake-action@v1
41+
uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1
4242
with:
4343
script-path: recipe.cake
4444
target: releasenotes

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,5 @@ BuildArtifacts/*
345345
.DS_Store
346346

347347
# Wyam
348-
docs/input/tasks
348+
docs/input/tasks
349+
/config.wyam.*

GitReleaseManager.yaml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
issue-labels-include:
22
- Breaking change
3-
- Feature
43
- Bug
4+
- Feature
5+
- Enhancement
56
- Improvement
67
- Documentation
78
- security
89
issue-labels-exclude:
910
- Build
11+
- Internal / Refactoring
1012
issue-labels-alias:
1113
- name: Documentation
1214
header: Documentation
@@ -15,9 +17,24 @@ issue-labels-alias:
1517
header: Security
1618
plural: Security
1719
create:
18-
include-sha-section: true
19-
sha-section-heading: "SHA256 Hashes of the release artifacts"
20-
sha-section-line-format: "- `{1}\t{0}`"
20+
include-footer: true
21+
footer-heading: Where to get it
22+
footer-content: >
23+
You can download this release from
24+
[nuget](https://nuget.org/packages/Cake.DotNetVersionDetector/{milestone}),
25+
or you can just reference it in a cake build script
26+
with `#addin nuget:?package=Cake.DotNetVersionDetector&version={milestone}`.
27+
footer-includes-milestone: true
28+
milestone-replace-text: "{milestone}"
29+
include-sha-section: true
30+
sha-section-heading: "SHA256 Hashes of the release artifacts"
31+
sha-section-line-format: "- `{1}\t{0}`"
32+
export:
33+
include-created-date-in-title: true
34+
created-date-string-format: yyyy-MM-dd
35+
perform-regex-removal: true
36+
regex-text: '[\r\n]*### Where to get it[\r\n]*You can .*`\.[\r\n]*'
37+
multiline-regex: true
2138
close:
2239
use-issue-comments: true
2340
issue-comment: |-
@@ -28,4 +45,4 @@ close:
2845
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone})
2946
- [NuGet Package](https://www.nuget.org/packages/{repository}/{milestone})
3047
31-
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:
48+
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Cake.DotNetVersionDetector
2+
3+
Cake.DotNetVersionDetector is set of aliases for [Cake][0] that help simplify using [ASoft .NET Version Detector][1].
4+
5+
[![License](http://img.shields.io/:license-mit-blue.svg)][2]
6+
7+
## Information
8+
9+
| |Stable|Pre-release|
10+
|:--:|:--:|:--:|
11+
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.DotNetVersionDetector.svg)][3]|
12+
|NuGet|[![MyGet](https://img.shields.io/myget/cake-contrib/vpre/Cake.DotNetVersionDetector.svg)][4]|[![NuGet](https://img.shields.io/nuget/vpre/Cake.DotNetVersionDetector.svg)][5]|
13+
14+
## Build Status
15+
16+
|Develop|Master|
17+
|:--:|:--:|
18+
|[![Build status][6]][7]|[![Build status][8]][7]|
19+
20+
## Quick Links
21+
22+
- [API Documentation][9]
23+
- [Usage Examples][10]
24+
25+
26+
[0]: https://cakebuild.net/
27+
[1]: https://www.asoft.be/prod_netver.html
28+
[2]: https://mit-license.org/
29+
[3]: https://github.com/cake-contrib/Cake.DotNetVersionDetector/releases/latest
30+
[4]: https://www.myget.org/feed/cake-contrib/package/nuget/Cake.DotNetVersionDetector
31+
[5]: https://www.nuget.org/packages/Cake.DotNetVersionDetector
32+
[6]: https://github.com/cake-contrib/Cake.DotNetVersionDetector/actions/workflows/build.yml/badge.svg?branch=develop
33+
[7]: https://github.com/cake-contrib/Cake.DotNetVersionDetector/actions/workflows/build.yml
34+
[8]: https://github.com/cake-contrib/Cake.DotNetVersionDetector/actions/workflows/build.yml/badge.svg?branch=master
35+
[9]: https://cakebuild.net/dsl/DotNetVersionDetector/
36+
[10]: https://cake-contrib.github.io/Cake.DotNetVersionDetector/docs/usage/examples

0 commit comments

Comments
 (0)