Release #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
jobs: | |
android: | |
runs-on: ubuntu-latest | |
environment: Dev | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: actions/setup-node@v3 | |
- name: Create .env file | |
run: | | |
echo XMTP_ENV=${{ env.XMTP_ENV }} >> .env | |
echo THRID_WEB_CLIENT_ID=${{ secrets.THRID_WEB_CLIENT_ID }} >> .env | |
echo AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >> .env | |
echo AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >> .env | |
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env | |
echo AWS_S3_BUCKET=${{ secrets.AWS_S3_BUCKET }} >> .env | |
echo AWS_S3_FOLDER=${{ secrets.AWS_S3_FOLDER }} >> .env | |
- run: yarn | |
- run: cd android && ./gradlew assembleRelease | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: APK | |
path: ./android/app/build/outputs/apk/release/app-release.apk |