Skip to content

Commit

Permalink
Update build workflow to include code checkout and specify Gradle dir…
Browse files Browse the repository at this point in the history
…ectory and Java version
  • Loading branch information
rabilrbl committed Feb 2, 2024
1 parent f839d63 commit 3298569
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@ on:
branches:
- stable
tags:
- '*'
- "*"
workflow_dispatch:


jobs:
Gradle:
runs-on: ubuntu-latest
environment:
environment:
name: Builder
permissions:
contents: write

steps:
- name: checkout code
uses: actions/checkout@v2

- name: checkout code
uses: actions/checkout@v2

- name: Build Signed APK
uses: TeamNecta/build-signed-apk@main
with:
keystore_b64: ${{ secrets.BASE_64_SIGNING_KEY }}
keystore_password: ${{ secrets.STORE_PASSWORD }}
key_alias: "key0"
key_password: ${{ secrets.KEY_PASSWORD }}
- name: Build Signed APK
uses: TeamNecta/build-signed-apk@main
with:
keystore_b64: ${{ secrets.BASE_64_SIGNING_KEY }}
keystore_password: ${{ secrets.STORE_PASSWORD }}
key_alias: "key0"
key_password: ${{ secrets.KEY_PASSWORD }}
gradlew_dir: "android"
java_version: "21"

- name: Prepare Tag
id: tag
run: echo "version=$(date +'v%y.%m.%d.%H%M%S')" >> $GITHUB_OUTPUT
- name: Prepare Tag
id: tag
run: echo "version=$(date +'v%y.%m.%d.%H%M%S')" >> $GITHUB_OUTPUT

- name: Release APK
uses: ncipollo/release-action@v1
with:
artifacts: app/build/outputs/apk/release/*.apk
tag: ${{ steps.tag.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release APK
uses: ncipollo/release-action@v1
with:
artifacts: app/build/outputs/apk/release/*.apk
tag: ${{ steps.tag.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3298569

Please sign in to comment.