Skip to content

Translate final batch of files #30

Translate final batch of files

Translate final batch of files #30

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Create keystore.properties
run: |
echo "storeFile=debug.jks" > keystore.properties
echo "storePassword=android" >> keystore.properties
echo "keyAlias=android" >> keystore.properties
echo "keyPassword=android" >> keystore.properties
- name: Grant execute permission
run: chmod +x gradlew
- name: Build Release APK
run: ./gradlew assembleRelease --no-daemon 2>&1
- name: Upload APK
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: releases/*.apk
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: androidforclaw-apk
path: releases/*.apk