ci: Split release into a separate PR build workflow

Because the release workflow already runs on dev and main, it is not necessary to also trigger it for PRs.
This commit is contained in:
oSumAtrIX 2024-02-22 04:23:53 +01:00
parent 9b23f77abe
commit 4d0db8c4fb
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
3 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,26 @@
name: Build pull request
on:
workflow_dispatch:
pull_request:
branches:
- dev
jobs:
release:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Gradle
uses: burrunan/gradle-cache-action@v1
- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- name: Build
run: ./gradlew build --no-daemon

View File

@ -6,10 +6,6 @@ on:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
release: