Skip to content

Commit d4d7746

Browse files
committed
Update config
1 parent 0f22e80 commit d4d7746

File tree

2 files changed

+35
-32
lines changed

2 files changed

+35
-32
lines changed

.github/workflows/MiNe2e.yaml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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: |

android/fastlane/Fastfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ platform :android do
9999
)
100100
else
101101
UI.message "Building APK version #{versionName}(#{versionCode}) for internal tests"
102+
UI.message "Checking if keystore file exists at: #{ENV['ANDROID_KEYSTORE_PATH']}"
103+
sh("ls -l #{ENV['ANDROID_KEYSTORE_PATH']}")
102104
#Build APK
103105
gradle(
104106
task: "assemble",

0 commit comments

Comments
 (0)