Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
runs-on: windows-latest
env:
NugetApiKey: ${{ secrets.NugetApiKey }}
ChocoApiKey: ${{ secrets.ChocoApiKey }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +61,6 @@ jobs:
tag_name: ${{ steps.gitversion.outputs.MajorMinorPatch }}
body: |
PowerShellGallery: [NexuShell ](https://www.powershellgallery.com/packages/NexuShell/${{ steps.gitversion.outputs.MajorMinorPatch }})
Chocolatey Community Repository: [NexuShell ](https://community.chocolatey.org/packages/NexuShell/${{ steps.gitversion.outputs.MajorMinorPatch }})
draft: false
prerelease: ${{ github.ref != 'refs/heads/main' }}

Expand Down
25 changes: 0 additions & 25 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ param(
[Switch]
$DeployToGallery,

[Parameter()]
[Switch]
$Choco,

[Parameter()]
[string]
$SemVer = $(
Expand Down Expand Up @@ -86,26 +82,5 @@ process {
$DeployToGallery {
Publish-Module -Path "$root\Output\NexuShell" -NuGetApiKey $env:NugetApiKey
}

$Choco {
$PackageSource = Join-Path $root "src\nuget"

$Nuspec = Get-ChildItem $PackageSource -recurse -filter *.nuspec

Copy-Item -Path $root\LICENSE -Destination $PackageSource
Compress-Archive -Path $root\Output\* -DestinationPath $PackageSource\tools\NexuShell.zip -Force #Added force to allow local testing without shenanigans

if (Test-Path "$PackageSource\tools\NexuShell.zip") {
choco pack $Nuspec.FullName --version $SemVer --output-directory $root
} else {
throw "Welp, ya need the zip in the tools folder, dumby"
}

if ($env:ChocoApiKey) {
Get-ChildItem $PackageSource -Recurse -Filter *.nupkg | ForEach-Object {
choco push $_.FullName -s https://push.chocolatey.org --api-key="'$($env:ChocoApiKey)'"
}
}
}
}
}
36 changes: 0 additions & 36 deletions src/nuget/NexuShell.nuspec

This file was deleted.

7 changes: 0 additions & 7 deletions src/nuget/Verification.txt

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions src/nuget/tools/chocolateyBeforeModify.ps1

This file was deleted.

75 changes: 0 additions & 75 deletions src/nuget/tools/chocolateyInstall.ps1

This file was deleted.

27 changes: 0 additions & 27 deletions src/nuget/tools/chocolateyUninstall.ps1

This file was deleted.

Loading