From 25b4e927a4ef7841b290279f28d5cdfdbee95bd7 Mon Sep 17 00:00:00 2001 From: ushastoe <40743392+krolchonok@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:35:35 +0300 Subject: [PATCH] Create anroid.yml --- .github/workflows/anroid.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/anroid.yml diff --git a/.github/workflows/anroid.yml b/.github/workflows/anroid.yml new file mode 100644 index 0000000..9d1b67a --- /dev/null +++ b/.github/workflows/anroid.yml @@ -0,0 +1,34 @@ +name: Android CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Create Release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./app/build/outputs/apk/release/app-release-unsigned.apk + tag: ${{ github.ref }} + overwrite: true + body: "apk" + prerelease: false