Bump version #29
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: CI | |
on: | |
push: | |
branches-ignore: | |
- master | |
jobs: | |
fixups: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Check if there are fixup commits | |
run: git log --pretty=format:%s origin/master.. | xargs | grep -v fixup | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Check version bump | |
run: F=$(git diff --diff-filter=M origin/master -- "MuzeiWebcam/build.gradle"); echo $F | grep "def version" | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Install JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Setup Android SDK | |
run: | | |
mkdir -p $HOME/android-sdk-linux/licenses | |
echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" >> $HOME/android-sdk-linux/licenses/android-sdk-license | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Get google-services.json | |
run: echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 -d > MuzeiWebcam/google-services.json | |
- name: Build | |
run: | | |
./gradlew assembleDebug | |
- name: Upload APK as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: APK | |
path: MuzeiWebcam/build/outputs/apk/debug/MuzeiWebcam-debug.apk | |