Skip to content

feat: Add cache and split publish workflow #1

feat: Add cache and split publish workflow

feat: Add cache and split publish workflow #1

Workflow file for this run

name: Build
on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main
jobs:
build:

Check failure on line 14 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}
- name: Set up SDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- run: chmod +x ./gradlew
- name: Build
run: ./gradlew build --no-daemon