This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
remove unused code #102
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: facebook/flipper/build-and-deploy | |
on: | |
push: | |
branches: | |
- main | |
env: | |
ANDROID_PUBLISH_KEY: ${{ secrets.ANDROID_PUBLISH_KEY }} | |
jobs: | |
snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sdkmanager | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Install Retry | |
run: scripts/install-retry.sh | |
- name: Build | |
run: | | |
yes | sdkmanager "platforms;android-33" || true | |
/tmp/retry -m 3 ./gradlew :android:assembleRelease --info | |
- name: Deploy Snapshot | |
run: "/tmp/retry -m 3 scripts/publish-android-snapshot.sh" |