diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml index a4734a9..14f46ef 100644 --- a/.github/workflows/apk.yml +++ b/.github/workflows/apk.yml @@ -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