Skip to content

Commit

Permalink
Merge pull request #10 from mikeyoshino/2023-8-10/UpdatedHeroIconsToV…
Browse files Browse the repository at this point in the history
…ersion2.0.18

correct working directory
  • Loading branch information
StevenTCramer committed Aug 14, 2023
2 parents 384d90d + c935c35 commit 32c3235
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ jobs:
with:
dotnet-version: '6.0.x' # Use .NET 6

- name: Build and pack
run: |
dotnet pack -c Release --output ./artifacts
working-directory: ./

- name: Set NuGet Key and Publish to NuGet
run: |
$Nuget_Key = "${{ secrets.PUBLISH_TO_NUGET_ORG }}"
./scripts/publish.ps1 -PackagePath ./artifacts
./scripts/publish.ps1
shell: pwsh # Use PowerShell Core


4 changes: 2 additions & 2 deletions scripts/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ try {
if (!$Nuget_Key) { throw "Nuget_Key is not set"}
dotnet tool restore
dotnet cleanup -y
dotnet pack ./Source/timewarp-heroicons/timewarp-heroicons.csproj -c Release
Push-Location ./Source/timewarp-heroicons/bin/Release
dotnet pack ./Source/timewarp-heroicons/timewarp-heroicons.csproj -c Release --output packages
Push-Location ./Source/timewarp-heroicons/packages
dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $Nuget_Key
Pop-Location
}
Expand Down

0 comments on commit 32c3235

Please sign in to comment.