Skip to content

Commit

Permalink
Update gradle_snapshot_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanlorng authored Oct 28, 2024
1 parent 9e5c6c0 commit f35503a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/gradle_snapshot_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,20 @@ jobs:
- type: Android
os: macos-latest
- type: Windows
packageType: msi
desktopPackage: msi
os: windows-latest
- type: Linux
packageType: deb
desktopPackage: deb
os: ubuntu-latest
- type: macOS
packageType: dmg
desktopPackage: dmg
os: macos-latest

runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
env:
IS_BUILD_DESKTOP: ${{ contains( ['Windows', 'Linux', 'macOS'], matrix.type) }}
IS_PUBLISH_LIBRARY: ${{ matrix.type == 'PublishLibrary' }}
IS_BUILD_ANDROID: ${{ matrix.type == 'Android' }}

Expand Down Expand Up @@ -94,13 +93,13 @@ jobs:
path: ${{github.workspace}}/gallery/build/outputs/**/*.apk

- name: Build Gallery Android
if: ${{ env.IS_BUILD_DESKTOP }}
if: ${{ matrix.desktopPackage }}
run: |
echo "$IS_BUILD_DESKTOP"
- name: Upload desktop build artifacts
if: ${{ env.IS_BUILD_DESKTOP }}
if: ${{ matrix.desktopPackage }}
uses: actions/upload-artifact@v4
with:
name: Gallery-${{ matrix.type }}-${{ github.run_id }}
path: ${{github.workspace}}/gallery/build/compose/binaries/main-release/${{ matrix.packageType }}/*.${{ matrix.packageType }}
path: ${{github.workspace}}/gallery/build/compose/binaries/main-release/${{ matrix.desktopPackage }}/*.${{ matrix.desktopPackage }}

0 comments on commit f35503a

Please sign in to comment.