attempt to fix builds #1 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Sign Android APK | |
on: | |
push: | |
branches: [ stable ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install/Upgrade pip and requests | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Decode Keystore File | |
run: | | |
if [ -z "${{ secrets.KEYSTORE }}" ]; then | |
echo "KEYSTORE secret is not set" | |
exit 1 | |
fi | |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > "${{ github.workspace }}/kurobaex.jks" | |
- name: Build and Sign APK | |
run: | | |
cd Kuroba | |
chmod +x ./gradlew | |
./gradlew assembleBetaRelease -Pandroid.injected.signing.store.file=${{ github.workspace }}/kurobaex.jks -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }} | |
- name: Create release | |
run: | | |
python ${{ github.workspace }}/.github/workflows/create_release.py | |
env: | |
PAT: ${{ secrets.PAT }} |