-
-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aceff1d
commit 89bf69c
Showing
11 changed files
with
71 additions
and
6 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Linux (.NET Core 3.1) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Linux (.NET 5.0) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: MacOS (.NET Core 3.1) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: MacOS (.NET 5.0) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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,18 @@ | ||
name: NuGet Push Public | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build-test-prep-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Create the package | ||
run: dotnet test -c Release || dotnet pack --no-build -c Release --output nupkgs | ||
- name: Publish the package to NuGet.org | ||
env: | ||
NUGET_KEY: ${{secrets.NUGET_KEY}} | ||
run: dotnet nuget push nupkgs/*.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json --skip-duplicate |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build-test-prep-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: build and test | ||
run: | | ||
dotnet restore | ||
dotnet build -c Release --no-restore | ||
dotnet test -c Release --no-build | ||
- name: setup semantic-release | ||
run: | | ||
npm install -D semantic-release | ||
npm install -D @semantic-release/git | ||
npm install -D @semantic-release/changelog | ||
npm install -D @semantic-release/exec | ||
- name: run semantic-release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: npx semantic-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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Windows (.NET Core 3.1) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Windows (.NET 5.0) | |
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
os-tests: | ||
|
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,16 @@ | ||
{ | ||
"branches": ["main"], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github", | ||
"@semantic-release/changelog", | ||
["@semantic-release/exec", { | ||
"prepareCmd": "sed -E -i 's/<(Version|span class=\"_version\")>.*<\\/(Version|span)>/<\\1>${nextRelease.version}<\\/\\2>/' Directory.Build.props *.md docs/*.md" | ||
}], | ||
["@semantic-release/git", { | ||
"assets": ["Directory.Build.props", "*.md", "docs"], | ||
"message": "chore(release-prep): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
}] | ||
] | ||
} |
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