Skip to content

Commit

Permalink
remove duplicate section
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henderson committed Oct 17, 2024
1 parent 2859aac commit 6c9b4b9
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/dotnet-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,61 +132,6 @@ jobs:
echo "release_platforms: $targetFrameworks"
echo "release_platforms=$targetFrameworks" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
# - name: Archive Files
# if: success() && env.CREATE_RELEASE == 'True'
# shell: pwsh
# run: |
# $platforms = "${{ env.release_platforms }}".Split(';')
# $outputDir = "${{ github.workspace }}\zip\Keyfactor"
# echo "outputDir=$outputDir" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
# md $outputDir
# foreach ($platform in $platforms) {
# $sourcePath = "${{ github.workspace }}\${{ inputs.release_dir }}\$platform\"
# $zipPath = "$outputDir\${{ env.REPO_NAME }}_$platform.zip"
# Get-ChildItem -File -Path $sourcePath
# Compress-Archive -Path $sourcePath -DestinationPath $zipPath -Force -Verbose
# }
# Get-ChildItem -File -Path $outputDir
# - name: Check for manifest in zip files
# if: success() && env.CREATE_RELEASE == 'True' && inputs.integration_type == 'orchestrator'
# shell: pwsh
# run: |
# $zipFiles = Get-ChildItem -Path "${{ github.workspace }}\zip\Keyfactor" -Filter '*.zip'
# foreach ($zipFile in $zipFiles) {
# $zipPath = $zipFile.FullName
# Write-Host "Checking manifest.json in $zipPath"

# # Extract the list of files in the zip to check for manifest.json
# $zipContent = [System.IO.Compression.ZipFile]::OpenRead($zipPath)
# $manifestExists = $false
# foreach ($entry in $zipContent.Entries) {
# if ($entry.FullName -eq "manifest.json") {
# $manifestExists = $true
# break
# }
# }
# $zipContent.Dispose()

# if (-not $manifestExists) {
# Write-Host "manifest.json not found in $zipPath"
# exit 1
# } else {
# Write-Host "manifest.json found in $zipPath"
# }
# }


# - name: Upload Release Assets
# if: success() && env.CREATE_RELEASE == 'True'
# uses: keyfactor/upload-release-assets@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ inputs.release_url }}
# asset_path: "${{ env.outputDir }}\\test-orch-mh_*.zip"
# asset_name: "test-orch-mh_*.zip"
# asset_content_type: application/zip

- name: Release Asset(s)
uses: softprops/action-gh-release@v2
if: success() && env.CREATE_RELEASE == 'True'
Expand Down

0 comments on commit 6c9b4b9

Please sign in to comment.