Skip to content

Commit

Permalink
Fix issue with unfound file for installing template in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkerm committed Oct 15, 2023
1 parent 1aaee0d commit bf68ead
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
name: nuget-package
if-no-files-found: error
path: |
**/*.nupkg
./bin/Release/**/*.nupkg
# Tests installing, using, and uninstalling the bundled template package
Build-New-Project:
Expand All @@ -84,8 +84,10 @@ jobs:
path: ./template

- name: Install template
working-directory: ./content
run: dotnet new install ./template/Mikeware.GoDotNet.BlankTemplate.*.nupkg # Account for version number
working-directory: ./
run: |
$packagefile = Get-Item ./template/Mikeware.GoDotNet.BlankTemplate.*.nupkg | Select-Object -First 1 | Split-Path -Leaf
dotnet new install ./template/$packagefile
- name: Create new project
working-directory: ./
Expand Down

0 comments on commit bf68ead

Please sign in to comment.