32 lines
984 B
YAML
32 lines
984 B
YAML
name: APK Upload CI
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
apk-upload:
|
|
runs-on: [ default ]
|
|
defaults:
|
|
run:
|
|
working-directory: android
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
- name: Clear Cache
|
|
run: sudo rm -rf ~/Python
|
|
- name: Download Artifact
|
|
id: download
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: app-qa-debug
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.9.7'
|
|
- name: Install dependencies
|
|
run: pip install -r ../.github/actions/s3_file_transfer/dependencies.txt
|
|
- name: Upload File
|
|
run: python ../.github/actions/s3_file_transfer/script.py upload ${{ secrets.AWS_ACCESS_KEY_GITHUB_CACHE }} ${{ secrets.AWS_SECRET_KEY_GITHUB_CACHE }} ${{ steps.download.outputs.download-path }}/apk_from_bundle/qaDebug/app-qa-debug-universal.apk
|
|
- name: Cleanup
|
|
run: rm -rf *.tmp
|