Skip to content

Commit

Permalink
Fix autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
rostopira committed Dec 3, 2023
1 parent 747e89c commit 968c0e7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,28 @@ on:
push:
branches:
- master
- actions

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: "temurin"
java-version: 17
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
run: chmod +x gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug
run: ./gradlew app:assembleDebug
- name: Releasing using Hub
uses: ShaunLWM/action-release-debugapk@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app
RELEASE_TITLE: New Build
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "latest"
title: "Auto build"
files: |
app/app/build/outputs/apk/debug/app-debug.apk

0 comments on commit 968c0e7

Please sign in to comment.