Skip to content

Commit

Permalink
Fix macos release asset upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 13, 2024
1 parent e2e1175 commit 919e4e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ jobs:
- name: 📦 Package
run: |
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target bundle --config ${{ env.BUILD_TYPE }}
echo "ARTIFACT_PATHNAME=${{ env.CMAKE_BUILD_DIR }}/QField-Installer.dmg" >> $GITHUB_ENV
echo "ARTIFACT_NAME=qfield-${{ env.CI_PACKAGE_FILE_SUFFIX }}-macos.dmg" >> $GITHUB_ENV
- name: 📦 Upload package
uses: actions/upload-artifact@v4
Expand All @@ -130,6 +132,15 @@ jobs:
name: "test-report-x64-osx-${{ env.BUILD_TYPE }}"
path: "${{ env.CMAKE_BUILD_DIR }}/report"

- name: 🚀 Upload release asset
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && env.ARTIFACT_NAME != null
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ARTIFACT_PATHNAME }}
asset_name: ${{ env.ARTIFACT_NAME }}
overwrite: true

- name: 📑 Upload logs
uses: actions/upload-artifact@v4
if: failure()
Expand Down

0 comments on commit 919e4e5

Please sign in to comment.