Skip to content

Commit

Permalink
Fix linux gui arm64 artifact in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstengaard committed Nov 30, 2022
1 parent 8776ac1 commit 1c64238
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 @@ -294,12 +294,12 @@ jobs:
retention-days: 3
if: matrix.os == 'ubuntu-latest'

- name: Set Linux 64-bit deb artifact
- name: Set Linux arm64 deb artifact
id: linux_x64_deb
shell: pwsh
run: |
$artifactName='hst-imager.gui.linux-x64.deb'
$artifactFile=(gci './src/Hst.Imager.GuiApp/bin/Desktop' -Recurse -Filter '*${{ env.BUILD_VERSION }}_amd64.deb' | Select-Object -First 1).FullName
$artifactName='hst-imager.gui.linux-arm64.deb'
$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 Expand Up @@ -397,10 +397,10 @@ jobs:
with:
name: hst-imager.gui.linux-arm64.AppImage

- name: Download Gui Linux 64-bit deb artifact
- name: Download Gui Linux arm64-bit deb artifact
uses: actions/download-artifact@v2
with:
name: hst-imager.gui.linux-x64.deb
name: hst-imager.gui.linux-arm64.deb

- name: Create release
uses: actions/create-release@v1
Expand Down Expand Up @@ -537,12 +537,12 @@ jobs:
asset_name: '${{ env.RELEASE_VERSION }}_gui_linux_arm64.AppImage'
asset_content_type: 'application/octet-stream'

- name: Upload Gui Linux 64-bit deb artifact
- name: Upload Gui Linux arm64 deb artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: hst-imager.gui.linux-x64.deb
asset_name: '${{ env.RELEASE_VERSION }}_gui_linux_x64.deb'
asset_path: hst-imager.gui.linux-arm64.deb
asset_name: '${{ env.RELEASE_VERSION }}_gui_linux_arm64.deb'
asset_content_type: 'application/octet-stream'

0 comments on commit 1c64238

Please sign in to comment.