ci(release): drop CI checks job from release workflow (#847)
The release workflow ran a full CI job (ktlint, lint, tests) as a gate before building the release APK. CI for branches/PRs is already handled by the android.yml pipeline; the release gate is redundant on a tag push. Remove the ci job and the needs dependency so the release builds immediately on tag. Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
9e741913fc
commit
2980a1e884
1 file changed
-51
@@ -19,60 +19,9 @@ permissions:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ── Run full CI before building release ───────────────────────────────
|
|
||||||
ci:
|
|
||||||
name: CI Checks
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v7
|
|
||||||
|
|
||||||
- name: Set up JDK 21
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v6
|
|
||||||
with:
|
|
||||||
validate-wrappers: true
|
|
||||||
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTED_KEY }}
|
|
||||||
|
|
||||||
- name: Grant Execute Permission for Gradlew
|
|
||||||
run: chmod +x gradlew
|
|
||||||
|
|
||||||
- name: Cache ktlint
|
|
||||||
id: cache-ktlint
|
|
||||||
uses: actions/cache@v6
|
|
||||||
with:
|
|
||||||
path: ~/.local/bin/ktlint
|
|
||||||
key: ktlint-1.2.1
|
|
||||||
|
|
||||||
- name: Install ktlint
|
|
||||||
if: steps.cache-ktlint.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.local/bin
|
|
||||||
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.2.1/ktlint
|
|
||||||
chmod +x ktlint
|
|
||||||
mv ktlint ~/.local/bin/
|
|
||||||
|
|
||||||
- name: Add local bin to PATH
|
|
||||||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: ktlintCheck
|
|
||||||
run: ./gradlew ktlintCheck
|
|
||||||
|
|
||||||
- name: lintDebug
|
|
||||||
run: ./gradlew lintDebug
|
|
||||||
|
|
||||||
- name: test
|
|
||||||
run: ./gradlew test
|
|
||||||
|
|
||||||
# ── Build release APK ─────────────────────────────────────────────────
|
# ── Build release APK ─────────────────────────────────────────────────
|
||||||
build-release:
|
build-release:
|
||||||
name: Build Release APK
|
name: Build Release APK
|
||||||
needs: ci
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in new issue
Block a user