Skip to content

Commit

Permalink
Create BuildReleasePlay.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiserdragon2 committed Nov 30, 2024
1 parent 75b86c6 commit 75ad4ad
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/BuildReleasePlay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build Release Google Play

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build:
name: Build Arcticons APK
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checking out branch
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
cache: gradle
- name: Write sign info
run: |
echo "Workflow manually triggered by ${{ github.actor }}"
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> keystore.properties
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> keystore.properties
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> keystore.properties
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks
fi
- name: Get Gradle
run: gradle wrapper
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Normal APK
run: ./gradlew app:bundleNormalPlayRelease
- name: Build Black APK
run: ./gradlew app:bundleBlackPlayRelease
- name: Build You APK
run: ./gradlew app:bundleYouPlayRelease
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: |
app/build/outputs/bundle/normalPlayRelease/*.aab
app/build/outputs/bundle/blackPlayRelease/*.aab
app/build/outputs/bundle/youPlayRelease/*.aab

0 comments on commit 75ad4ad

Please sign in to comment.