Skip to content

Commit

Permalink
Create workflow to add apk to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitsaibot authored and Gitsaibot committed Jul 30, 2023
1 parent 6a66d2a commit a6ba973
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build & Publish Release APK

on:
push:
tags:
- '*'

jobs:
Gradle:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
- name: Restore Cache
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
run: ./gradlew build
- name: Build Release APK
run: ./gradlew assembleRelease
- name: Releasing using Hub
uses: Gitsaibot/action-release-releaseapk@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app

0 comments on commit a6ba973

Please sign in to comment.