diff options
author | t895 <clombardo169@gmail.com> | 2024-01-17 21:12:30 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-02-04 16:54:18 +0100 |
commit | 99ea31faa855df2df0d3922f6ce4182784870d5b (patch) | |
tree | 4f1810341ef93318b5dcb8464c0680664bbcf3ba /.github/workflows/android-mainline-play-release.yml | |
parent | Merge pull request #12857 from liamwhite/const (diff) | |
download | yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar.gz yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar.bz2 yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar.lz yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar.xz yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.tar.zst yuzu-99ea31faa855df2df0d3922f6ce4182784870d5b.zip |
Diffstat (limited to '.github/workflows/android-mainline-play-release.yml')
-rw-r--r-- | .github/workflows/android-mainline-play-release.yml | 59 |
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 @@ +# SPDX-FileCopyrightText: 2024 yuzu Emulator Project +# SPDX-License-Identifier: GPL-2.0-or-later + +name: yuzu-android-mainline-play-release + +on: + workflow_dispatch: + inputs: + release-tag: + description: 'Tag # from yuzu-android that you want to build and publish' + required: true + default: '200' + release-track: + description: 'Play store release track (internal/alpha/beta/production)' + required: true + default: 'alpha' + +jobs: + android: + runs-on: ubuntu-latest + if: ${{ github.repository == 'yuzu-emu/yuzu' }} + steps: + - uses: actions/checkout@v3 + name: Checkout + with: + fetch-depth: 0 + submodules: true + token: ${{ secrets.ALT_GITHUB_TOKEN }} + - run: npm install execa@5 + - uses: actions/github-script@v5 + name: 'Pull mainline tag' + env: + MAINLINE_TAG: ${{ github.event.inputs.release-tag }} + with: + script: | + const execa = require("execa"); + const mergebot = require('./.github/workflows/android-merge.js').getMainlineTag; + process.chdir('${{ github.workspace }}'); + mergebot(execa); + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y ccache apksigner glslang-dev glslang-tools + - name: Build + run: | + echo "GIT_TAG_NAME=android-${{ github.event.inputs.releast-tag }}" >> $GITHUB_ENV + ./.ci/scripts/android/mainlinebuild.sh + env: + MAINLINE_PLAY_ANDROID_KEYSTORE_B64: ${{ secrets.PLAY_ANDROID_KEYSTORE_B64 }} + PLAY_ANDROID_KEY_ALIAS: ${{ secrets.PLAY_ANDROID_KEY_ALIAS }} + PLAY_ANDROID_KEYSTORE_PASS: ${{ secrets.PLAY_ANDROID_KEYSTORE_PASS }} + SERVICE_ACCOUNT_KEY_B64: ${{ secrets.MAINLINE_SERVICE_ACCOUNT_KEY_B64 }} + STORE_TRACK: ${{ github.event.inputs.release-track }} + AUTO_VERSIONED: true |