Skip to content

Update ci-cd.yml

Update ci-cd.yml #2

Workflow file for this run

name: Build and Deploy Android App
on:
push:
branches:
- main
- feature-ci-cd
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
- name: Install dependencies
run: |
npm install
- name: Build Android App
run: |
cd android
./gradlew assembleRelease
- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
run: |
aws s3 cp ./android/app/build/outputs/apk/release/app-release.apk s3://chat-todo/ --acl public-read