|
1 | | -# Copyright 2025 Google LLC |
2 | | -# |
3 | | -# Licensed under the Apache License, Version 2.0 (the "License"); |
4 | | -# you may not use this file except in compliance with the License. |
5 | | -# You may obtain a copy of the License at |
6 | | -# |
7 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
8 | | -# |
9 | | -# Unless required by applicable law or agreed to in writing, software |
10 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
11 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | -# See the License for the specific language governing permissions and |
13 | | -# limitations under the License. |
14 | | - |
15 | 1 | on: |
16 | 2 | push: |
17 | 3 | branches: |
|
30 | 16 | - uses: googleapis/release-please-action@v4 |
31 | 17 | id: release |
32 | 18 | with: |
33 | | - command: manifest |
34 | 19 | token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} |
35 | | - |
36 | | - - name: Checkout |
37 | | - uses: actions/checkout@v2 |
38 | | - if: ${{ steps.release.outputs.release_created }} |
39 | | - with: |
40 | | - token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} |
41 | | - |
42 | | - - name: set up Java 21 |
43 | | - uses: actions/setup-java@v3 |
44 | | - if: ${{ steps.release.outputs.release_created }} |
45 | | - with: |
46 | | - distribution: 'temurin' |
47 | | - java-version: '21' |
48 | | - |
49 | | - - name: Build APKs |
50 | | - if: ${{ steps.release.outputs.release_created }} |
51 | | - run: | |
52 | | - echo "Generating ApiDemos (Java) APKs" |
53 | | - cd $GITHUB_WORKSPACE/ApiDemos/project/ |
54 | | - ./gradlew assemble |
55 | | - cp ./java-app/build/outputs/apk/debug/java-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-debug.apk |
56 | | - |
57 | | - echo "Generating Kotlin (Kotlin) APKs" |
58 | | - ./gradlew assemble |
59 | | - cp ./kotlin-app/build/outputs/apk/debug/kotlin-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-debug.apk |
60 | | - |
61 | | - - name: Upload Release Artifacts |
62 | | - if: ${{ steps.release.outputs.release_created }} |
63 | | - env: |
64 | | - GITHUB_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} |
65 | | - run: | |
66 | | - gh release upload ${{ steps.release.outputs.tag_name }} ./ApiDemos-java-debug.apk ./ApiDemos-kotlin-debug.apk |
| 20 | + config-file: release-please-config.json |
| 21 | + manifest-file: .release-please-manifest.json |
0 commit comments