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 487c8d1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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,16 +84,18 @@ 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: ./
run: dotnet new godotnet -n CiTestGame

- name: Build Test Game
working-directory: ./CiTestGame
run: dotnet CiTestGame.sln -c Release
run: dotnet build CiTestGame.sln -c Release

- name: Uninstall Template
working-directory: ./
Expand Down

0 comments on commit 487c8d1

Please sign in to comment.