Skip to content

Commit

Permalink
Add recurse to set gui artifact steps
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstengaard committed Nov 3, 2022
1 parent 47063cc commit adb4607
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.win-x64-setup.exe'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter 'Hst Imager Setup ${{ env.BUILD_VERSION }}.exe' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter 'Hst Imager Setup ${{ env.BUILD_VERSION }}.exe' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -199,7 +199,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.win-x64-portable.exe'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter 'Hst Imager ${{ env.BUILD_VERSION }}.exe' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter 'Hst Imager ${{ env.BUILD_VERSION }}.exe' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -219,7 +219,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.win-x64.zip'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter 'Hst Imager-${{ env.BUILD_VERSION }}-win.zip' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter 'Hst Imager-${{ env.BUILD_VERSION }}-win.zip' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -239,7 +239,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.osx-x64.dmg'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter '*${{ env.BUILD_VERSION }}.dmg' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}.dmg' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -259,7 +259,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.linux-x64.AppImage'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter '*${{ env.BUILD_VERSION }}.AppImage' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}.AppImage' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -279,7 +279,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.linux-arm64.AppImage'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter '*${{ env.BUILD_VERSION }}-arm64.AppImage' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}-arm64.AppImage' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -299,7 +299,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.linux-x64.deb'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter '*${{ env.BUILD_VERSION }}_amd64.deb' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}_amd64.deb' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand All @@ -319,7 +319,7 @@ jobs:
shell: pwsh
run: |
$artifactName='hst-imager.gui.linux-arm64.deb'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Filter '*${{ env.BUILD_VERSION }}_arm64.deb' | Select-Object -First 1).FullName
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}_arm64.deb' | Select-Object -First 1).FullName
Rename-Item $artifactFile -NewName $artifactName
$artifactPath=(Join-Path (Split-Path $artifactFile -Parent) -ChildPath $artifactName)
"::set-output name=artifact_name::$artifactName"
Expand Down

0 comments on commit adb4607

Please sign in to comment.