From 7066f45e31f0f625d747300d28e15bafe6561ffa Mon Sep 17 00:00:00 2001 From: Stereo528 <52116771+Stereo528@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:31:49 -0800 Subject: [PATCH] fix actions to work on all branches --- .github/workflows/build.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fa319f..4525aca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ name: Gradle build -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [ pull_request, push, workflow_dispatch ] jobs: build: @@ -17,11 +13,12 @@ jobs: MAVEN_PASS: ${{ secrets.MAVEN_PASS }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: temurin java-version: 17 - name: Grant execute permission for gradlew @@ -31,7 +28,7 @@ jobs: run: ./gradlew buildOrPublish - name: capture build artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Artifacts - path: build/libs/ \ No newline at end of file + path: build/libs/