summaryrefslogtreecommitdiff
path: root/.github/workflows/android-mainline-play-release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/android-mainline-play-release.yml')
-rw-r--r--.github/workflows/android-mainline-play-release.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/android-mainline-play-release.yml b/.github/workflows/android-mainline-play-release.yml
new file mode 100644
index 000000000..8255e0a40
--- /dev/null
+++ b/.github/workflows/android-mainline-play-release.yml
@@ -0,0 +1,59 @@
1# SPDX-FileCopyrightText: 2024 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
4name: yuzu-android-mainline-play-release
5
6on:
7 workflow_dispatch:
8 inputs:
9 release-tag:
10 description: 'Tag # from yuzu-android that you want to build and publish'
11 required: true
12 default: '200'
13 release-track:
14 description: 'Play store release track (internal/alpha/beta/production)'
15 required: true
16 default: 'alpha'
17
18jobs:
19 android:
20 runs-on: ubuntu-latest
21 if: ${{ github.repository == 'yuzu-emu/yuzu' }}
22 steps:
23 - uses: actions/checkout@v3
24 name: Checkout
25 with:
26 fetch-depth: 0
27 submodules: true
28 token: ${{ secrets.ALT_GITHUB_TOKEN }}
29 - run: npm install execa@5
30 - uses: actions/github-script@v5
31 name: 'Pull mainline tag'
32 env:
33 MAINLINE_TAG: ${{ github.event.inputs.release-tag }}
34 with:
35 script: |
36 const execa = require("execa");
37 const mergebot = require('./.github/workflows/android-merge.js').getMainlineTag;
38 process.chdir('${{ github.workspace }}');
39 mergebot(execa);
40 - name: Set up JDK 17
41 uses: actions/setup-java@v3
42 with:
43 java-version: '17'
44 distribution: 'temurin'
45 - name: Install dependencies
46 run: |
47 sudo apt-get update
48 sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
49 - name: Build
50 run: |
51 echo "GIT_TAG_NAME=android-${{ github.event.inputs.releast-tag }}" >> $GITHUB_ENV
52 ./.ci/scripts/android/mainlinebuild.sh
53 env:
54 MAINLINE_PLAY_ANDROID_KEYSTORE_B64: ${{ secrets.PLAY_ANDROID_KEYSTORE_B64 }}
55 PLAY_ANDROID_KEY_ALIAS: ${{ secrets.PLAY_ANDROID_KEY_ALIAS }}
56 PLAY_ANDROID_KEYSTORE_PASS: ${{ secrets.PLAY_ANDROID_KEYSTORE_PASS }}
57 SERVICE_ACCOUNT_KEY_B64: ${{ secrets.MAINLINE_SERVICE_ACCOUNT_KEY_B64 }}
58 STORE_TRACK: ${{ github.event.inputs.release-track }}
59 AUTO_VERSIONED: true