Skip to content

Commit

Permalink
Use dotnet tool manifest file for Cake.Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Jan 29, 2020
1 parent 50dca05 commit fd0d3c8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: 'Dotnet Tool Restore'
run: dotnet tool restore
shell: pwsh
- name: 'Dotnet Cake Build'
uses: ecampidoglio/[email protected]
with:
target: Build
run: dotnet cake --target=Build
shell: pwsh
- name: 'Dotnet Cake Test'
uses: ecampidoglio/[email protected]
with:
target: Test
run: dotnet cake --target=Test
shell: pwsh
- name: 'Dotnet Cake Pack'
uses: ecampidoglio/[email protected]
with:
target: Pack
run: dotnet cake --target=Pack
shell: pwsh
- name: 'Publish Artefacts'
uses: actions/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions Schema.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
azure-pipelines.yml = azure-pipelines.yml
build.cake = build.cake
.github\workflows\build.yml = .github\workflows\build.yml
dotnet-tools.json = dotnet-tools.json
Key.snk = Key.snk
EndProjectSection
EndProject
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build_script:
- sh: sudo apt update
- sh: sudo apt install -y apt-transport-https dotnet-sdk-3.1
- cmd: choco install dotnetcore-sdk --no-progress --confirm --version 3.1.101
- pwsh: dotnet tool install --global Cake.Tool
- pwsh: dotnet tool restore
- pwsh: dotnet cake --target=Build
- pwsh: dotnet cake --target=Test
- pwsh: dotnet cake --target=Pack
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ stages:
inputs:
packageType: 'sdk'
version: '3.1.101'
- script: 'dotnet tool install --global Cake.Tool'
displayName: 'Install Cake Tool'
- script: 'dotnet tool restore'
displayName: 'Dotnet Tool Restore'
failOnStderr: true
- script: 'dotnet cake --target=Build'
displayName: 'Dotnet Cake Build'
Expand Down
12 changes: 12 additions & 0 deletions dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.36.0",
"commands": [
"dotnet-cake"
]
}
}
}

0 comments on commit fd0d3c8

Please sign in to comment.