Skip to content

Commit

Permalink
Update action build script
Browse files Browse the repository at this point in the history
Add support for PR and fix a compatibility bug
  • Loading branch information
zeng-github01 committed Jul 10, 2024
1 parent 9a25543 commit bd498a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -12,8 +12,10 @@ jobs:
with:
java-version: '17'
distribution: 'adopt' # You can choose other OpenJDK distributions.
- name: Update Build Script (Before Build)
run: ./gradlew updateBuildScript
- name: Build with Gradle
run: ./gradlew build # Ensure your gradlew script is executable
run: ./gradlew build
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit bd498a5

Please sign in to comment.