Skip to content

Commit

Permalink
fix: paths not working
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXTQ committed Nov 23, 2024
1 parent 7430c43 commit a2afa7c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ jobs:
- name: Move DLLs to single directory
shell: pwsh
run: |
mkdir ${{ github.workspace }}/output
$outputDir = "${{ github.workspace }}/output"
if (-Not (Test-Path -Path $outputDir)) {
New-Item -ItemType Directory -Path $outputDir
}
Get-ChildItem -Path ${{ github.workspace }} -Directory | ForEach-Object {
$folderName = $_.Name
$dllPath = "$_.FullName/bin/Debug/net48/$folderName.dll"
if (Test-Path $dllPath) {
Copy-Item -Path $dllPath -Destination ${{ github.workspace }}/output/
$dllPath = Join-Path -Path $_.FullName -ChildPath "bin/Debug/net48/$folderName.dll"
if (Test-Path -Path $dllPath) {
Copy-Item -Path $dllPath -Destination $outputDir
}
}
- name: Publish Artifact
Expand Down

0 comments on commit a2afa7c

Please sign in to comment.