-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from steviecoaster/develop
Release NexuShell 1.0
- Loading branch information
Showing
207 changed files
with
11,981 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build NexuShell | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- gh-pages | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
env: | ||
NugetApiKey: ${{ secrets.PowerShellGalleryApiKey }} | ||
ChocoApiKey: ${{ secrets.ChocolateyCommunityRepositoryApiKey }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: GitVersion | ||
id: gitversion | ||
uses: PoshCode/Actions/gitversion@v1 | ||
|
||
- name: Install-RequiredModules | ||
uses: PoshCode/Actions/install-requiredmodules@v1 | ||
|
||
- name: Build Module | ||
run: .\build.ps1 -Build -SemVer "${{ steps.gitversion.outputs.LegacySemVerPadded }}" | ||
shell: pwsh | ||
|
||
- name: Upload Built Module | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: NexuShell.${{ steps.gitversion.outputs.LegacySemVerPadded }} | ||
path: .\Output | ||
|
||
- name: Test Module | ||
run: .\build.ps1 -TestPrePublish -SemVer "${{ steps.gitversion.outputs.LegacySemVerPadded }}" | ||
shell: pwsh | ||
|
||
- name: Upload Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/composite@v1 | ||
if: always() | ||
|
||
- name: Create Release | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
continue-on-error: true | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
release_name: NexuShell v${{ steps.gitversion.outputs.MajorMinorPatch }} | ||
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' }} | ||
|
||
- name: Publish Module | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: .\build.ps1 -DeployToGallery -SemVer "${{ steps.gitversion.outputs.LegacySemVerPadded }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
.DS_STORE | ||
Output\* | ||
Output | ||
[0-9]\.[0-9]\.[0-9] | ||
specifications | ||
specifications\* | ||
site\ | ||
site\ | ||
site | ||
site\* | ||
TestResults.xml | ||
Coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@{ | ||
ModuleManifest = ".\src\NexuShell.psd1" | ||
SourceDirectories = "private", "public" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mode: ContinuousDelivery | ||
branches: {} | ||
merge-message-formats: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,15 @@ | ||
# TreasureChest | ||
# NexuShell | ||
|
||
A PowerShell module for Sonatype Nexus repository server administration | ||
|
||
## Try it out! | ||
|
||
1. Clone this repo and run `.\build.ps1 -Build` from the cloned folder | ||
2. Import the module with `Import-Module .\Output\TreasureChest\TreasureChest.psd1` from the cloned folder | ||
3. Discover the available commands with `Get-Command -Module TreasureChest` | ||
2. Import the module with `Import-Module .\Output\NexuShell\NexuShell.psd1` from the cloned folder | ||
3. Discover the available commands with `Get-Command -Module NexuShell` | ||
4. Explore the available commands with `Get-Help` | ||
5. Start having fun! | ||
|
||
### Currently supported functions | ||
### Documentation | ||
|
||
- Connect-NexusServer | ||
- Enable-NexusRealm | ||
- Get-NexusAnonymousAuthStatus | ||
- Get-NexusBlobStore | ||
- Get-NexusBlobStoreQuota | ||
- Get-NexusLicenseStatus | ||
- Get-NexusReadOnlyState | ||
- Get-NexusRealm | ||
- Get-NexusRepository | ||
- Install-NexusLicense | ||
- New-NexusAptHostedRepository | ||
- New-NexusAptProxyRepository | ||
- New-NexusBlobStore | ||
- New-NexusNugetHostedRepository | ||
- New-NexusNugetProxyRepository | ||
- New-NexusRawGroupRepository | ||
- New-NexusRawHostedRepository | ||
- New-NexusBowerHostedRepository | ||
- New-NexusBowerProxyRepository | ||
- New-NexusBowerGroupRepository | ||
- New-NexusCocoaPodProxyRepository | ||
- New-NexusConanProxyRepository | ||
- New-NexusCondaProxyRepository | ||
- New-NexusDockerGroupRepository | ||
- New-NexusDockerHostedRepository | ||
- New-NexusDockerProxyRepository | ||
- Remove-NexusBlobStore | ||
- Remove-NexusRepository | ||
- Set-NexusAnonymousAuth | ||
- Set-NexusReadOnlyMode | ||
Information about currently supported functions and their usage can be found on the [docs](https://steviecoaster.dev/NexuShell/) site. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@{ | ||
ModuleBuilder = "[2.0.0,3.0)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<# | ||
.Synopsis | ||
Installs prerequisites for building, testing, and publishing the module | ||
#> | ||
[CmdletBinding()] | ||
param() | ||
|
||
if (-not (Get-Command gitversion -ErrorAction SilentlyContinue)) { | ||
# We use GitVersion to generate the version based on history in source control | ||
choco install gitversion -y | ||
} | ||
|
||
if (-not ($Script = (Get-Command Install-RequiredModule -ErrorAction SilentlyContinue).Source)) { | ||
$Install = Install-Script Install-RequiredModule -Force -PassThru | ||
$Script = Join-Path $Install.InstalledLocation $Install.Name | ||
} | ||
& $Script -Path $PSScriptRoot\RequiredModules.psd1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/Get-NexusAnonymousAuthStatus.md → ...mous Auth/Get-NexusAnonymousAuthStatus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/Set-NexusAnonymousAuth.md → .../Anonymous Auth/Set-NexusAnonymousAuth.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.