feat: Github actions upload to S3 #21
Workflow file for this run
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: "Testing Test Build App" | |
on: | |
# just for testing, remove after pr is ready to merge | |
workflow_dispatch: | |
merge_group: | |
pull_request: | |
types: [ opened, synchronize, edited ] | |
workflow_call: | |
jobs: | |
testing-build-app: | |
runs-on: buildjet-8vcpu-ubuntu-2204 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive # Needed in order to fetch Kalium sources for building | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: buildjet/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Build Staging Compat | |
env: | |
GITHUB_USER: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew assembleStagingCompat -p ./ --no-daemon | |
uplod-to-s3: | |
runs-on: buildjet-8vcpu-ubuntu-2204 | |
needs: [testing-build-app] | |
steps: | |
- name: Upload APK staging compat | |
uses: ./.github/workflows/upload-aws-s3.yml | |
with: | |
flavour: "staging" | |
buildType: "compat" |