Skip to content

Commit

Permalink
修正 Actions 工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbopro committed Aug 9, 2024
1 parent 454eda6 commit 375ceda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: microsoft
- name: Prepare Gradle wrapper
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- name: Upload artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
# if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
Expand Down

0 comments on commit 375ceda

Please sign in to comment.