Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build-apks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
- '**.yml'
- 'docs/**'

release:
types:
Expand Down Expand Up @@ -40,6 +45,7 @@ jobs:
with:
distribution: "jetbrains"
java-version: "21"
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
Expand All @@ -59,12 +65,12 @@ jobs:
if [[ "${{ github.event_name }}" == "release" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Triggered by release or manual dispatch. Building release variant."
BUILD_VARIANT="release"
./gradlew assembleRelease
./gradlew assembleRelease --no-daemon
APK_PATH=app/build/outputs/apk/release/app-universal-release-unsigned.apk
else
echo "Triggered by push to 'main' branch. Building staging variant."
BUILD_VARIANT="staging"
./gradlew assembleStaging
./gradlew assembleStaging --no-daemon
APK_PATH=app/build/outputs/apk/staging/app-universal-staging.apk
fi

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
- '**.yml'
- 'docs/**'

release:
types: [created, published]

Expand Down Expand Up @@ -57,6 +63,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "jetbrains"
java-version: "21"
cache: 'gradle'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
Loading