Skip to content

Commit c7f5a2e

Browse files
committed
Merge branch 'release/4.0.0'
* release/4.0.0: (build) Update to latest GitReleaseManager (maint) Include readme in nupkg (maint) Add suggestions from Cake.Addin.Analyzer (maint) Simplify the build (GH-143) Compile addin against Cake 4.0.0 *fixes #143 (maint): Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.2 in /Source (maint): Bump github/codeql-action from 1 to 2 (maint): Bump actions/cache from 3.3.1 to 3.3.2 (maint): Bump xunit from 2.5.0 to 2.5.1 in /Source (build) Change based on new upload-artifact action (build) Remove reporting to CodeCov (build) Make use of CodeCOv Repo Token (maint): Bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 in /Source (build) Add required SDK for CodeQL (build) Skip Ubuntu build for now (build) Update all actions (build) Bump to latest actions/cache (maint): Bump actions/checkout from 3.5.3 to 4.1.0
2 parents b2d3a7b + 0a8b5f3 commit c7f5a2e

17 files changed

+398
-121
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1313
strategy:
1414
matrix:
15-
os: [ windows-2022, ubuntu-latest, macos-latest ]
15+
os: [ windows-latest, macos-13 ]
1616

1717
env:
1818
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
1919
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
2020
AZURE_USER: ${{ secrets.AZURE_USER }}
21+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN }}
2122
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
2223
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
2324
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
@@ -34,33 +35,31 @@ jobs:
3435
WYAM_DEPLOY_BRANCH: "gh-pages"
3536
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
3637
steps:
37-
- name: Checkout the repository
38-
uses: actions/checkout@v3.5.3
39-
40-
- name: Fetch all tags and branches
41-
run: git fetch --prune --unshallow
38+
- name: Get the sources
39+
uses: actions/checkout@v4.2.2
40+
with:
41+
fetch-depth: 0
4242

4343
- name: Cache Tools
44-
uses: actions/cache@v3.3.1
44+
uses: actions/cache@v4.2.3
4545
with:
4646
path: tools
4747
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
4848

49-
- name: Install .NET Core SDK 5.0.x
50-
uses: actions/setup-dotnet@v3.2.0
51-
with:
52-
dotnet-version: '5.0.x'
53-
54-
- name: Install .NET Core SDK 6.0.x
55-
uses: actions/setup-dotnet@v3.2.0
49+
- name: Install .NET SDK 5.0.x - 8.0.x
50+
uses: actions/setup-dotnet@v4.3.1
5651
with:
57-
dotnet-version: '6.0.x'
52+
dotnet-version: |
53+
5.0.x
54+
6.0.x
55+
7.0.x
56+
8.0.x
5857
5958
- name: Install .NET Core SDK (global.json)
60-
uses: actions/setup-dotnet@v3.2.0
59+
uses: actions/setup-dotnet@v4.3.1
6160

6261
- name: Build project
63-
uses: cake-build/cake-action@v1.4.1
62+
uses: cake-build/cake-action@v3.0.0
6463
with:
6564
script-path: recipe.cake
6665
target: CI
@@ -69,15 +68,15 @@ jobs:
6968
cake-bootstrap: true
7069

7170
- name: Upload Issues-Report
72-
uses: actions/upload-artifact@v3.1.2
71+
uses: actions/upload-artifact@v4.6.2
7372
with:
7473
if-no-files-found: warn
75-
name: issues
74+
name: issues-${{ matrix.os }}
7675
path: BuildArtifacts/report.html
7776

7877
- name: Upload Packages
79-
uses: actions/upload-artifact@v3.1.2
78+
uses: actions/upload-artifact@v4.6.2
8079
with:
8180
if-no-files-found: warn
82-
name: package
81+
name: package-${{ matrix.os }}
8382
path: BuildArtifacts/Packages/**/*

.github/workflows/codeql-analysis.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,39 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v3.5.3
33+
uses: actions/checkout@v4.1.0
3434
with:
3535
fetch-depth: 0
3636

37+
- name: Install .NET SDK 5.0.x - 8.0.x
38+
uses: actions/setup-dotnet@v4.3.1
39+
with:
40+
dotnet-version: |
41+
5.0.x
42+
6.0.x
43+
7.0.x
44+
8.0.x
45+
3746
# If this run was triggered by a pull request event, then checkout
3847
# the head of the pull request instead of the merge commit.
3948
- run: git checkout HEAD^2
4049
if: ${{ github.event_name == 'pull_request' }}
4150

42-
# Initializes the CodeQL tools for scanning.
51+
- name: Install .NET Core SDK (global.json)
52+
uses: actions/setup-dotnet@v4.3.1
53+
54+
# Initializes the CodeQL tools for scanning.
4355
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@v1
56+
uses: github/codeql-action/init@v3
4557
with:
4658
languages: ${{ matrix.language }}
4759
# If you wish to specify custom queries, you can do so here or in a config file.
48-
# By default, queries listed here will override any specified in a config file.
60+
# By default, queries listed here will override any specified in a config file.
4961
# Prefix the list here with "+" to use these queries and those in the config file.
5062
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5163

5264
- run: ./build.ps1
5365
shell: pwsh
5466

5567
- name: Perform CodeQL Analysis
56-
uses: github/codeql-action/analyze@v1
68+
uses: github/codeql-action/analyze@v3

.github/workflows/publishDocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: checkout
18-
uses: actions/checkout@v3.5.3 #https://github.com/actions/checkout
18+
uses: actions/checkout@v4.1.0 #https://github.com/actions/checkout
1919
with:
2020
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....
2121
ref: ${{ github.event.ref }}
2222

2323
- name: Cache Tools
24-
uses: actions/cache@v3.3.1
24+
uses: actions/cache@v4.2.3
2525
with:
2626
path: tools
2727
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}

.github/workflows/release-notes.yml

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

1212
steps:
1313
- name: Checkout the requested branch
14-
uses: actions/checkout@v3.5.3
14+
uses: actions/checkout@v4.1.0
1515
- name: Fetch all tags and branches
1616
run: git fetch --prune --unshallow
1717
- name: Cache Tools
18-
uses: actions/cache@v3.3.1
18+
uses: actions/cache@v4.2.3
1919
with:
2020
path: tools
2121
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

GitReleaseManager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ create:
2929
include-sha-section: true
3030
sha-section-heading: "SHA256 Hashes of the release artifacts"
3131
sha-section-line-format: "- `{1}\t{0}`"
32+
include-contributors: true
3233
export:
3334
include-created-date-in-title: true
3435
created-date-string-format: yyyy-MM-dd
@@ -37,6 +38,7 @@ export:
3738
multiline-regex: true
3839
close:
3940
use-issue-comments: true
41+
set-due-date: true
4042
issue-comment: |-
4143
:tada: This issue has been resolved in version {milestone} :tada:
4244

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
next-version: 3.0.0
1+
next-version: 4.0.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License](http://img.shields.io/:license-mit-blue.svg)](http://cake-contrib.mit-license.org)
44

5-
Cake Addin that exends Cake with ability to post messages to Twitter, using the Twitter REST API.
5+
Cake Addin that extends Cake with ability to post messages to Twitter, using the Twitter REST API.
66

77
**NOTE:** This addin would not have been possible without the help of this [blog post](http://www.thatsoftwaredude.com/content/6289/how-to-post-a-tweet-using-c-for-single-user). A big thank you to Alex for documenting how to interact directly with the Twitter REST API.
88

0 commit comments

Comments
 (0)