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/