diff --git a/.github/scripts/set-sign-info.ps1 b/.github/scripts/set-sign-info.ps1 index b3a18a8..4dff4ad 100644 --- a/.github/scripts/set-sign-info.ps1 +++ b/.github/scripts/set-sign-info.ps1 @@ -32,7 +32,8 @@ while (([DirectoryInfo]$currentPath).FullName -ne ([DirectoryInfo]$currentPath). if ($resolvedKitxMobilePath -and (Test-Path $resolvedKitxMobilePath -Type Container)) { Set-Location $resolvedKitxMobilePath.ProviderPath break - } else { + } + else { $currentPath = ([DirectoryInfo]$currentPath).Parent.FullName } } @@ -51,7 +52,7 @@ Write-Output $content > $fileName Set-Location app -if ($null -eq $jksBase64 -or '' -eq $jksBase64) { +if (($null -eq $jksBase64) -or ('' -eq $jksBase64)) { Write-Error "JKS file is not provided" exit 1 } diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml index 28b795a..9d055a7 100644 --- a/.github/workflows/build_apk.yml +++ b/.github/workflows/build_apk.yml @@ -51,7 +51,7 @@ jobs: StoreFile: ${{ secrets.JKS_STOREFILE }} JksBase64: ${{ secrets.JKS_BASE64 }} run: | - ./set-sign-info.ps1 -keyPassword $KeyPassword -storePassword $StorePassword -keyAlias $KeyAlias -storeFile $StoreFile -jksBase64 $JksBase64 + ./set-sign-info.ps1 -keyPassword $env:KeyPassword -storePassword $env:StorePassword -keyAlias $env:KeyAlias -storeFile $env:StoreFile -jksBase64 $env:JksBase64 - name: Build working-directory: kitx_mobile