mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 13:58:20 +03:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions: write-all
|
|
|
|
steps:
|
|
- name: Checkout branch "${{ github.ref_name }}"
|
|
run: |
|
|
git clone --no-checkout https://github.com/polymorphicshade/Tubular.git .
|
|
git config core.symlinks false
|
|
git checkout --progress --force ${{ github.ref_name }}
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 17
|
|
distribution: "temurin"
|
|
cache: 'gradle'
|
|
|
|
- name: Decode keystore
|
|
env:
|
|
ENCODED_STRING: ${{ secrets.KEYSTORE }}
|
|
run: |
|
|
echo $ENCODED_STRING | base64 -di > app/keystore.jks
|
|
|
|
- name: Build release APK
|
|
env:
|
|
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
|
run: ./gradlew assembleRelease
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app
|
|
path: app/build/outputs/apk/release/*.apk
|