diff options
Diffstat (limited to '.github/workflows/android-ea-play-release.yml')
| -rw-r--r-- | .github/workflows/android-ea-play-release.yml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/android-ea-play-release.yml b/.github/workflows/android-ea-play-release.yml new file mode 100644 index 000000000..0cf78279c --- /dev/null +++ b/.github/workflows/android-ea-play-release.yml | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | # SPDX-FileCopyrightText: 2024 yuzu Emulator Project | ||
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | name: yuzu-android-ea-play-release | ||
| 5 | |||
| 6 | on: | ||
| 7 | workflow_dispatch: | ||
| 8 | inputs: | ||
| 9 | release-track: | ||
| 10 | description: 'Play store release track (internal/alpha/beta/production)' | ||
| 11 | required: true | ||
| 12 | default: 'alpha' | ||
| 13 | |||
| 14 | jobs: | ||
| 15 | android: | ||
| 16 | runs-on: ubuntu-latest | ||
| 17 | if: ${{ github.repository == 'yuzu-emu/yuzu' }} | ||
| 18 | steps: | ||
| 19 | - uses: actions/checkout@v3 | ||
| 20 | name: Checkout | ||
| 21 | with: | ||
| 22 | fetch-depth: 0 | ||
| 23 | submodules: true | ||
| 24 | token: ${{ secrets.ALT_GITHUB_TOKEN }} | ||
| 25 | - run: npm install execa@5 | ||
| 26 | - uses: actions/github-script@v5 | ||
| 27 | name: 'Merge and publish Android EA changes' | ||
| 28 | env: | ||
| 29 | ALT_GITHUB_TOKEN: ${{ secrets.ALT_GITHUB_TOKEN }} | ||
| 30 | BUILD_EA: true | ||
| 31 | with: | ||
| 32 | script: | | ||
| 33 | const execa = require("execa"); | ||
| 34 | const mergebot = require('./.github/workflows/android-merge.js').mergebot; | ||
| 35 | process.chdir('${{ github.workspace }}'); | ||
| 36 | mergebot(github, context, execa); | ||
| 37 | - name: Get tag name | ||
| 38 | run: echo "GIT_TAG_NAME=$(cat tag-name.txt)" >> $GITHUB_ENV | ||
| 39 | - name: Set up JDK 17 | ||
| 40 | uses: actions/setup-java@v3 | ||
| 41 | with: | ||
| 42 | java-version: '17' | ||
| 43 | distribution: 'temurin' | ||
| 44 | - name: Install dependencies | ||
| 45 | run: | | ||
| 46 | sudo apt-get update | ||
| 47 | sudo apt-get install -y ccache apksigner glslang-dev glslang-tools | ||
| 48 | - name: Build | ||
| 49 | run: ./.ci/scripts/android/eabuild.sh | ||
| 50 | env: | ||
| 51 | EA_PLAY_ANDROID_KEYSTORE_B64: ${{ secrets.PLAY_ANDROID_KEYSTORE_B64 }} | ||
| 52 | PLAY_ANDROID_KEY_ALIAS: ${{ secrets.PLAY_ANDROID_KEY_ALIAS }} | ||
| 53 | PLAY_ANDROID_KEYSTORE_PASS: ${{ secrets.PLAY_ANDROID_KEYSTORE_PASS }} | ||
| 54 | EA_SERVICE_ACCOUNT_KEY_B64: ${{ secrets.EA_SERVICE_ACCOUNT_KEY_B64 }} | ||
| 55 | STORE_TRACK: ${{ github.event.inputs.release-track }} | ||
| 56 | AUTO_VERSIONED: true | ||
| 57 | BUILD_EA: true | ||
| 58 | - name: Create release | ||
| 59 | uses: softprops/action-gh-release@v1 | ||
| 60 | with: | ||
| 61 | tag_name: ${{ env.EA_TAG_NAME }} | ||
| 62 | name: ${{ env.EA_TAG_NAME }} | ||
| 63 | draft: false | ||
| 64 | prerelease: false | ||
| 65 | repository: yuzu/yuzu-android | ||
| 66 | token: ${{ secrets.ALT_GITHUB_TOKEN }} | ||