-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added publish build to myget * Added myget publish and fixed build badge and copyright years
- Loading branch information
1 parent
f9b355a
commit 2b04075
Showing
7 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...b/workflows/NUnit3TestAdapter.Cake.CI.yml → .github/workflows/NUnit3TestAdapter.CI.yml
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: NUnit3TestAdapter.Cake.CI | ||
|
||
name: NUnit3TestAdapter.CI | ||
|
||
on: [push, pull_request,workflow_dispatch] | ||
|
||
|
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,59 @@ | ||
name: NUnit3TestAdapter.Myget.Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- release | ||
- 'v3' | ||
- myget | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
jobs: | ||
build-windows: | ||
name: Windows Build | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: ⤵️ Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 🛠️ Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
3.1.x | ||
5.0.x | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: 🛠️ Install dotnet tools | ||
run: dotnet tool restore | ||
|
||
- name: 🔨 Build | ||
run: dotnet tool run dotnet-cake --configuration=Release | ||
|
||
- name: 📦 Package | ||
run: dotnet tool run dotnet-cake --target=Package | ||
|
||
- name: 💾 Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Package | ||
path: package | ||
|
||
- name: Publish nupkg and snupkg to Myget.org | ||
run: | | ||
foreach($file in (Get-ChildItem package -Recurse -Include *.nupkg)) { | ||
dotnet nuget push $file --api-key "${{ secrets.PUBLISHMYGET }}" --source https://www.myget.org/F/nunit/api/v3/index.json --skip-duplicate | ||
} | ||
foreach($file in (Get-ChildItem "package" -Recurse -Include *.snupkg)) { | ||
dotnet nuget push $file --api-key "${{ secrets.PUBLISHMYGET }}" --source https://www.myget.org/F/nunit/api/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
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