Skip to content

Allow writing to cache from main and develop #170

Allow writing to cache from main and develop

Allow writing to cache from main and develop #170

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 27, Col: 9): Unexpected value 'cache-read-only', (Line: 28, Col: 9): Unexpected value 'cache-encryption-key'
on:
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Assemble
run: ./gradlew assembleRelease --configuration-cache