mirror of
https://github.com/wgtunnel/android.git
synced 2026-07-03 14:07:49 +02:00
ci: fix aab finding
This commit is contained in:
@@ -203,7 +203,7 @@ jobs:
|
||||
if: ${{ github.event_name == 'push' || inputs.track != 'none' }}
|
||||
name: Publish to Google Play
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-google-aab # ← Add this
|
||||
needs: build-google-aab
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
@@ -215,6 +215,18 @@ jobs:
|
||||
name: google-play-aab
|
||||
path: ${{ github.workspace }}/aab
|
||||
|
||||
- name: Find exact AAB file path
|
||||
id: find-aab
|
||||
run: |
|
||||
AAB_PATH=$(find "${{ github.workspace }}/aab" -name "*.aab" -type f | head -1)
|
||||
if [ -z "$AAB_PATH" ]; then
|
||||
echo "ERROR: No .aab file found after download!"
|
||||
find "${{ github.workspace }}/aab" -type f
|
||||
exit 1
|
||||
fi
|
||||
echo "Found AAB: $AAB_PATH"
|
||||
echo "aab_path=$AAB_PATH" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create service_account.json
|
||||
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
||||
|
||||
@@ -229,7 +241,7 @@ jobs:
|
||||
track=${{ github.event_name == 'push' && 'production' || inputs.track }}
|
||||
bundle exec fastlane run upload_to_play_store \
|
||||
track:"$track" \
|
||||
aab:"${{ github.workspace }}/aab/*.aab" \
|
||||
aab:"${{ steps.find-aab.outputs.aab_path }}" \
|
||||
json_key:"service_account.json" \
|
||||
package_name:"com.zaneschepke.wireguardautotunnel" \
|
||||
skip_upload_apk:true
|
||||
Reference in New Issue
Block a user