Skip to content

Commit 5cb8ed8

Browse files
committed
Merge branch 'release/4.1.0'
* release/4.1.0: (maint) Update project URLs (maint) Update targetframeworks (maint) Add vscode settings file (GH-24) Include pdb files in nupkg (GH-23) Enable deterministic builds (GH-22) Add Cake.Addin.Analyzer package (GH-21) Add CakeContrib.Guidelines package (GH-20) Add workflow to generate release notes (GH-19) Update GRM configuration (GH-18) Add GitHub Actions build (GH-17) Update to Cake.Recipe 2.2.0
2 parents 54dc392 + 916d77b commit 5cb8ed8

File tree

16 files changed

+261
-380
lines changed

16 files changed

+261
-380
lines changed

.appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ environment:
55
#---------------------------------#
66
# Build Image #
77
#---------------------------------#
8-
image: Visual Studio 2017
8+
image: Visual Studio 2019
99

1010
#---------------------------------#
1111
# Build Script #
1212
#---------------------------------#
1313
build_script:
14-
- ps: .\build.ps1 -Target AppVeyor
14+
- ps: .\build.ps1 --target=CI
1515

1616
#---------------------------------#
1717
# Tests
@@ -44,11 +44,11 @@ branches:
4444
# Build Cache #
4545
#---------------------------------#
4646
cache:
47-
- tools -> recipe.cake, tools/packages.config
47+
- tools -> recipe.cake
4848

4949
#---------------------------------#
5050
# Skip builds for doc changes #
5151
#---------------------------------#
5252
skip_commits:
5353
# Regex for matching commit message
54-
message: /(doc).*/
54+
message: /\(doc\).*/

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "0.38.5",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
}
11+
}
12+
}

.github/workflows/build.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "README.md"
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
13+
strategy:
14+
matrix:
15+
os: [windows-latest, ubuntu-latest, macos-latest]
16+
17+
env:
18+
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
19+
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
20+
AZURE_USER: ${{ secrets.AZURE_USER }}
21+
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
22+
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
23+
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
24+
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
25+
GPR_USER: ${{ secrets.GPR_USER }}
26+
GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
27+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
28+
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
29+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
30+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
31+
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
32+
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
33+
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
34+
WYAM_DEPLOY_BRANCH: "gh-pages"
35+
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
36+
steps:
37+
- name: Checkout the repository
38+
uses: actions/checkout@v2
39+
40+
- name: Fetch all tags and branches
41+
run: git fetch --prune --unshallow
42+
43+
- name: Cache Tools
44+
uses: actions/cache@v2
45+
with:
46+
path: tools
47+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
48+
49+
- name: Build project
50+
uses: cake-build/cake-action@v1
51+
with:
52+
script-path: recipe.cake
53+
target: CI
54+
verbosity: Normal
55+
cake-version: 0.38.5
56+
cake-bootstrap: true
57+
58+
- name: Upload Issues-Report
59+
uses: actions/upload-artifact@v2
60+
with:
61+
if-no-files-found: warn
62+
name: issues
63+
path: BuildArtifacts/report.html
64+
65+
- name: Upload Packages
66+
uses: actions/upload-artifact@v2
67+
with:
68+
if-no-files-found: warn
69+
name: package
70+
path: BuildArtifacts/Packages/**/*
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Draft Release Notes
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
draft-stable:
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout the requested branch
14+
uses: actions/checkout@v2.3.4
15+
- name: Fetch all tags and branches
16+
run: git fetch --prune --unshallow
17+
- name: Cache Tools
18+
uses: actions/cache@v2.1.4
19+
with:
20+
path: tools
21+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
22+
- name: Set up git version
23+
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
24+
uses: gittools/actions/gitversion/setup@v0.9.9
25+
with:
26+
versionSpec: "5.x"
27+
- name: Run git version
28+
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
29+
id: gitversion
30+
uses: gittools/actions/gitversion/execute@v0.9.9
31+
- name: Create release branch ${{ github.event.inputs.version }}
32+
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
33+
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
34+
- name: Push new branch
35+
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
36+
uses: ad-m/github-push-action@v0.6.0
37+
with:
38+
branch: "release/${{ steps.gitversion.outputs.majorMinorPatch }}"
39+
github_token: ${{ secrets.GH_TOKEN }}
40+
- name: Drafting Release Notes
41+
uses: cake-build/cake-action@v1
42+
with:
43+
script-path: recipe.cake
44+
target: releasenotes
45+
verbosity: Diagnostic
46+
cake-version: 0.38.5
47+
cake-bootstrap: true

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"omnisharp.enableEditorConfigSupport": true,
3+
"omnisharp.enableRoslynAnalyzers": true,
4+
"[powershell]": {
5+
"files.encoding": "utf8bom"
6+
},
7+
"powershell.codeFormatting.addWhitespaceAroundPipe": true
8+
}

GitReleaseManager.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,48 @@
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
1315
plural: Documentation
1416
- name: security
1517
header: Security
1618
plural: Security
19+
create:
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.AppVeyor/{milestone}),
25+
or you can just reference it in a cake build script
26+
with `#addin nuget:?package=Cake.AppVeyor&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
38+
close:
39+
use-issue-comments: true
40+
issue-comment: |-
41+
:tada: This issue has been resolved in version {milestone} :tada:
42+
43+
The release is available on:
44+
45+
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone})
46+
- [NuGet Package](https://www.nuget.org/packages/{repository}/{milestone})
47+
48+
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Cake.AppVeyor
22
A set of aliases for http://cakebuild.net to access the AppVeyor API
33

4-
![AppVeyor](https://ci.appveyor.com/api/projects/status/github/redth/Cake.AppVeyor)
4+
![AppVeyor](https://ci.appveyor.com/api/projects/status/github/cake-contrib/Cake.AppVeyor)
55

66
You can easily reference Cake.AppVeyor directly in your build script via a cake addin:
77

0 commit comments

Comments
 (0)