Skip to content

Commit

Permalink
[build]: added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 28, 2024
1 parent dcd7683 commit d9112f6
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
workflow_dispatch:

push:
branches:
- 'master'

env:
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
ALIAS: ${{ secrets.ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

jobs:
build:
name: Build APK
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: oracle
cache: 'gradle'

- name: Checkout keystore repository
uses: actions/checkout@v4
with:
repository: ${{ secrets.KEYSTORE_GIT_REPOSITORY }}
token: ${{ secrets.KEYSTORE_ACCESS_TOKEN }}
path: app/keystore

- name: Build APK
run: bash ./gradlew assembleRelease --stacktrace --no-daemon

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: logfox-release
compression-level: 0
path: app/build/outputs/apk/release/app-release.apk

0 comments on commit d9112f6

Please sign in to comment.