-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare Directory.Build.props * Update Build all projects.yml * Create release-drafter.yml * Fix * Update Test all projects.yml * Update Build all projects.yml * Restore * dotnet nuget * Update Test all projects.yml * Update Test all projects.yml * Fixes * Fix PackageVersion * Update Test all projects.yml * Update Directory.Build.props * Update Test all projects.yml * Update Test all projects.yml * Update Test all projects.yml * Update Test all projects.yml * Create Release.yml * Rename Build all projects.yml to Build.yml * Rename Test all projects.yml to Test.yml * Update release-drafter.yml * Update Release.yml * Update Test.yml * Update Release.yml * Update release-drafter.yml * Update Release.yml * Update Test.yml * Update release-drafter.yml * Update Test.yml * Update Test.yml * Update Test.yml * Update Test.yml * Update Test.yml * Update Test.yml * Update Directory.Build.props * Update Release.yml * Update release-drafter.yml * Update Release.yml * Update Test.yml * Update Release.yml * "RELEASE_NOTES"? lol * RELEEASE_NOTES? lol * Update CaretTests.cs * Update Release.yml
- Loading branch information
1 parent
aabb520
commit cecc4b0
Showing
7 changed files
with
181 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# https://github.com/marketplace/actions/release-drafter#configuration | ||
name-template: '$RESOLVED_VERSION CI' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'Version/Major' | ||
minor: | ||
labels: | ||
- 'Version/Minor' | ||
patch: | ||
labels: | ||
- 'Version/Patch' | ||
default: patch | ||
exclude-labels: | ||
- 'Version/None' | ||
prerelease: true | ||
template: | | ||
<!--Example release name: $RESOLVED_VERSION xxx Update [Alpha|Beta]--> | ||
<!--Please release immediately after modifying as any changes will be overwritten on next run of the Test workflow--> | ||
<!--Remove these comments, they will be visible in the released NuGet packages!--> | ||
## Changes from $PREVIOUS_TAG (Recently merged first) | ||
$CHANGES | ||
## Contributors | ||
$CONTRIBUTORS | ||
categories: | ||
- title: '🌈 New Platform!' | ||
labels: | ||
- 'Type/Platform' | ||
- title: '🚀 Features' | ||
labels: | ||
- 'Type/Enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'Type/Bug' | ||
- title: '🧰 Maintenance' | ||
label: 'Type/Housekeeping' | ||
# Extra line before $BODY or markdown on the first line of $BODY will be interpreted as plain text | ||
change-template: | | ||
<details><summary>$TITLE (#$NUMBER) @$AUTHOR</summary> | ||
$BODY | ||
</details> | ||
no-changes-template: '* (No changes)' | ||
replacers: | ||
# We don't support nested <summary> and <details> so we add a (?!<details>|<summary>) | ||
- search: '/<details><summary>((?:(?!<details>|<summary>).)+?)<\/summary>\s*<\/details>/g' | ||
replace: '- $1' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
all_projects: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.302' | ||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1.0.2 | ||
- name: Setup MSBuild Path | ||
uses: warrenbuckley/Setup-MSBuild@v1 | ||
- name: Restore NuGet Packages | ||
run: nuget restore CSharpMath.sln | ||
- name: Build CI artifacts | ||
run: msbuild CSharpMath.sln /p:Configuration=Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
all_projects: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.302' | ||
- name: Build GitHub Releases draft artifacts | ||
env: | ||
RELEASE_NOTES: | | ||
# ${{ github.event.release.name }} | ||
${{ github.event.release.body }} | ||
# run: dotnet test CSharpMath.CrossPlatform.slnf | ||
run: | # https://github.com/dotnet/sdk/issues/10409, https://github.com/dotnet/sdk/issues/11417 | ||
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743 | ||
# https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion | ||
# ${parameter/pattern/string} If pattern begins with ‘/’, all matches of pattern are replaced with string. Normally only the first match is replaced. | ||
RELEASE_NOTES=${RELEASE_NOTES//,/%2C} | ||
RELEASE_NOTES=${RELEASE_NOTES//;/%3B} | ||
for p in\ | ||
"CSharpMath.CoreTests"\ | ||
"CSharpMath.Editor.Tests"\ | ||
"CSharpMath.Editor.Tests.FSharp"\ | ||
"CSharpMath.Evaluation.Tests"\ | ||
`# "CSharpMath.Ios" # https://github.com/dotnet/sdk/issues/11108 + https://github.com/release-drafter/release-drafter/issues/558`\ | ||
"CSharpMath.Rendering.Tests"\ | ||
"CSharpMath.Rendering.Text.Tests"\ | ||
"CSharpMath.Xaml.Tests"\ | ||
"CSharpMath.Xaml.Tests.NuGet"\ | ||
"Typography/Typography.TextBreak/Typography.TextBreak.UnitTests" | ||
do | ||
# -r for restore | ||
dotnet msbuild -r -p:Configuration=Release -p:PackageVersion="${{ github.event.release.tag_name }}" -p:PackageReleaseNotes="$RELEASE_NOTES" "$p" | ||
done | ||
- name: Upload to GitHub Releases | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
file: .nupkgs/* | ||
file_glob: true | ||
overwrite: true | ||
- name: Upload to NuGet | ||
run: dotnet nuget push .nupkgs/* -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters