Skip to content

Commit 445ca05

Browse files
pditommasoclaude
andcommitted
Simplify workflow structure: build.yml calls release.yml
- Make build.yml the main workflow with original triggers - Add release job to build.yml that calls release.yml when needed - Remove unnecessary main.yml workflow - Both build and release now run in same workflow instance - Cleaner, simpler structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1aff67c commit 445ca05

File tree

2 files changed

+14
-37
lines changed

2 files changed

+14
-37
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Gradle Build
22

33
on:
4-
workflow_call:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
workflow_dispatch:
510

611
jobs:
712
build:
@@ -19,3 +24,11 @@ jobs:
1924

2025
- name: Run Gradle Build
2126
run: ./gradlew build --no-daemon
27+
28+
release:
29+
needs: build
30+
if: github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[release]')
31+
uses: ./.github/workflows/release.yml
32+
with:
33+
should_release: true
34+
secrets: inherit

.github/workflows/main.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)