| branches: |
| 6 | - master |
| 7 |
| 8 | jobs: |
| 9 | linux: |
| 10 | name: Build |
| 11 | runs-on: ubuntu-latest |
| 12 | steps: |
| 13 | - uses: actions/checkout@v2 |
| 14 | - name: set up JDK 1.8 |
| 15 | uses: actions/setup-java@v1 |
| 16 | with: |
| 17 | java-version: 1.8 |
| 18 | - uses: actions/cache@v1 |
| 19 | with: |
| 20 | path: ~/.gradle/caches |
| 21 | key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} |
| 22 | restore-keys: | |
| 23 | ${{ runner.os }}-gradle- |
| 24 | - uses: actions/cache@v1 |
| 25 | with: |
| 26 | path: ~/.gradle/wrapper/ |
| 27 | key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} |
| 28 | restore-keys: | |
| 29 | ${{ runner.os }}-gradlewrapper- |
| 30 | - uses: actions/cache@v1 |
| 31 | with: |
| 32 | path: ~/.android/build-cache |
| 33 | key: ${{ runner.os }}-build-cache-${{ hashFiles('**/*.gradle') }} |
| 34 | restore-keys: | |
| 35 | ${{ runner.os }}-build-cache- |
| 36 | - name: Build |
| 37 | env: |
| 38 | KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }} |
| 39 | ALIAS_NAME: ${{ secrets.ALIAS_NAME }} |
| 40 | ALIAS_PASS: ${{ secrets.ALIAS_PASS }} |
| 41 | run: | |
| 42 | ./gradlew assembleAfatRelease |
| 43 | ./gradlew bundleAfatRelease |
| 44 | - uses: actions/upload-artifact@master |
| 45 | name: Upload artifact |
| 46 | with: |
| 47 | name: Nekogram |
| 48 | path: TMessagesProj/build/outputs/ |
| 49 |