Skip to content

Commit

Permalink
update private publish
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Jul 29, 2024
1 parent 5971a55 commit e876a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish_private_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install Azure Signing Tool
run: |
dotnet --version
dotnet tool install --global AzureSignTool --version 4.0.1
dotnet tool install --global AzureSignTool --version 5.0.0
# OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
- name: Login to Azure
uses: azure/login@v2
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Create Private Gallery
run: |
cd repo
. utils/DeployUtils.ps1
. repo/utils/workflow/Publish-ScubaGear.ps1
New-PrivateGallery -GalleryName $env:GalleryName -Trusted
- name: Get Key Vault Info
id: key-vault-info
Expand All @@ -72,7 +72,7 @@ jobs:
$Parameters = @{
AzureKeyVaultUrl = '${{ steps.key-vault-info.outputs.KeyVaultUrl }}'
CertificateName = '${{ steps.key-vault-info.outputs.KeyVaultCertificateName }}'
ModulePath = 'repo/PowerShell/ScubaGear'
ModuleSourcePath = 'repo/PowerShell/ScubaGear'
GalleryName = $env:GalleryName
}
# This publishes to a private gallery.
Expand All @@ -93,7 +93,7 @@ jobs:
}
$Config = New-PesterConfiguration -Hashtable $PesterConfig
Invoke-Pester -Configuration $Config
# This is a manual test that writes the version to the console.
# This is a manual test that simply writes the version to the console.
- name: Print Scuba Version
run: |
Install-Module -Name ScubaGear -SkipPublisherCheck
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish_public_package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Purpose: Publish on demand to the real gallery (PSGallery).
# Note: If the published package is pre-release, then all 3 of the manual inputs, the module version, the pre-release boolean, and the tag, should be entered.
# Note: If the published package is pre-release, then all 3 of the manual inputs (the module version, the pre-release boolean, and the tag) should be entered.

name: Publish Public Package

Expand Down Expand Up @@ -68,7 +68,6 @@ jobs:
- name: Sign and Publish Module
run: |
# Source the deploy utilities so the functions in it can be called.
# . repo/utils/DeployUtils.ps1
. repo/utils/workflow/Publish-ScubaGear.ps1
# Remove non-release files
Remove-Item -Recurse -Force repo -Include .git*
Expand Down

0 comments on commit e876a67

Please sign in to comment.