Skip to content

Commit

Permalink
ci: Split release into a separate PR build workflow
Browse files Browse the repository at this point in the history
Because the release workflow already runs on dev and main, it is not necessary to also trigger it for PRs.
  • Loading branch information
oSumAtrIX committed Feb 21, 2024
1 parent 9b0e35e commit ad485ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: Build
run: ./gradlew build clean
File renamed without changes.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
release:
Expand Down

0 comments on commit ad485ce

Please sign in to comment.