@@ -101,6 +101,7 @@ jobs:
101101 steps :
102102 - name : " Check out code"
103103 uses : actions/checkout@v4
104+
104105 - name : Retrieve the secrets and decode it to a file
105106 env :
106107 UPLOAD_KEYSTORE_BASE64 : ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
@@ -121,7 +122,7 @@ jobs:
121122 keystorePassword : ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
122123 keystoreKeyPassword : ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
123124 playStoreCredentialsBase64 : ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
124- keystorePath : . /android/keystores/upload.keystore
125+ keystorePath : ${{ github.workspace }} /android/keystores/upload.keystore
125126
126127 ios-app :
127128 runs-on : macOS-15
@@ -146,38 +147,38 @@ jobs:
146147 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
147148 with :
148149 name : mda
149- # - name: "Download Android app"
150- # uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
151- # with:
152- # name: android-app
153- # path: android-app
154-
155- - name : " Install GitHub CLI"
156- run : |
157- curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
158- sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
159- 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
160- sudo apt update
161- sudo apt install gh
162- - name : " Authenticate GitHub CLI"
163- run : |
164- unset GITHUB_TOKEN
165- echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
166- - name : " Fetch artifacts from run 41"
167- id : fetch-artifacts
168- run : |
169- artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14242504528/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
170- echo "Artifacts URL: $artifacts_url"
171- echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
172150 - name : " Download Android app"
173- if : env.artifacts_url != ''
174- run : |
175- if [ -z "$artifacts_url" ]; then
176- echo "No artifacts URL found."
177- exit 1
178- fi
179- curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o android-app.zip "$artifacts_url"
180- unzip android-app.zip -d android-app
151+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
152+ with :
153+ name : android-app
154+ path : android-app
155+
156+ # - name: "Install GitHub CLI"
157+ # run: |
158+ # curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
159+ # sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
160+ # 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
161+ # sudo apt update
162+ # sudo apt install gh
163+ # - name: "Authenticate GitHub CLI"
164+ # run: |
165+ # unset GITHUB_TOKEN
166+ # echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
167+ # - name: "Fetch artifacts from run 41"
168+ # id: fetch-artifacts
169+ # run: |
170+ # artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14242504528/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
171+ # echo "Artifacts URL: $artifacts_url"
172+ # echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
173+ # - name: "Download Android app"
174+ # if: env.artifacts_url != ''
175+ # run: |
176+ # if [ -z "$artifacts_url" ]; then
177+ # echo "No artifacts URL found."
178+ # exit 1
179+ # fi
180+ # curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o android-app.zip "$artifacts_url"
181+ # unzip android-app.zip -d android-app
181182
182183 - name : " Check for APK file"
183184 run : |
0 commit comments