@@ -96,18 +96,39 @@ jobs:
9696 name : mda
9797 path : automation.mda
9898
99- android-app :
100- runs-on : ubuntu-22.04
101- steps :
102- - name : " Check out code"
103- uses : actions/checkout@v4
104- - name : Build android apk
105- uses : ./.github/actions/build-android
106- with :
107- google_services_json : ${{ secrets.GOOGLE_SERVICES_JSON }}
99+ # android-app:
100+ # runs-on: ubuntu-22.04
101+ # steps:
102+ # - name: "Check out code"
103+ # uses: actions/checkout@v4
104+ # - name: Build android apk
105+ # uses: ./.github/actions/build-android
106+ # with:
107+ # google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
108+
109+ # ios-app:
110+ # runs-on: macOS-13
111+ # steps:
112+ # - name: "Check out code"
113+ # uses: actions/checkout@v4
114+ # - name: Build ios app
115+ # uses: ./.github/actions/build-ios
116+ # env:
117+ # MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
118+ # MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
119+ # KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
120+ # GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
121+ # APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
122+ # APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
123+ # APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
124+ # - name: "Upload iOS App"
125+ # uses: actions/upload-artifact@v4
126+ # with:
127+ # name: ios-app
128+ # path: ios/build/Release-iphoneos/*.ipa
108129
109130 android-test :
110- needs : [mendix-version, project, android-app ]
131+ needs : [mendix-version, project]
111132 runs-on : ubuntu-22.04
112133 steps :
113134 - name : " Check out code"
@@ -116,17 +137,38 @@ jobs:
116137 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
117138 with :
118139 name : mda
119- - name : " Download Android app"
120- uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
121- with :
122- name : android-app
123- path : android-app
140+ # - name: "Download Android app"
141+ # uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
142+ # with:
143+ # name: android-app
144+ # path: android-app
124145
125- - name : " Debug Android app directory "
146+ - name : " Install GitHub CLI "
126147 run : |
127- echo "Listing contents of android-app directory:"
128- ls -R android-app/
129- shell : bash
148+ curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
149+ sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
150+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
151+ sudo apt update
152+ sudo apt install gh
153+ - name : " Authenticate GitHub CLI"
154+ run : |
155+ unset GITHUB_TOKEN
156+ echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
157+ - name : " Fetch artifacts from run 676"
158+ id : fetch-artifacts
159+ run : |
160+ artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14200920117/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
161+ echo "Artifacts URL: $artifacts_url"
162+ echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
163+ - name : " Download Android app"
164+ if : env.artifacts_url != ''
165+ run : |
166+ if [ -z "$artifacts_url" ]; then
167+ echo "No artifacts URL found."
168+ exit 1
169+ fi
170+ curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o android-app.zip "$artifacts_url"
171+ unzip android-app.zip -d android-app
130172
131173 - name : " Check for APK file"
132174 run : |
0 commit comments