File tree Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Original file line number Diff line number Diff line change 1313 pull_request :
1414 branches : [ "main" ]
1515
16- permissions :
17- contents : read
18-
1916jobs :
2017 build :
2118
2219 runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
2322
2423 steps :
25- - uses : actions/checkout@v3
24+ - uses : actions/checkout@v4
2625 - name : Set up JDK 21
27- uses : actions/setup-java@v3
26+ uses : actions/setup-java@v4
2827 with :
2928 java-version : ' 21'
3029 distribution : ' temurin'
31- - name : submodules-init
32- # You may pin to the exact commit or the version.
33- # uses: snickerbockers/submodules-init@74927a8bb0fe1bb0f1f1e4d102384a8e69f19171
34- uses : snickerbockers/submodules-init@v4
35- - name : Build with Gradle
36- uses : gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
37- with :
38- arguments : build
39- - name : get version
40- run : |
41- echo "ver=$(git rev-parse --short HEAD)" >> ${GITHUB_ENV}
42- - name : upload built jar
43- uses : actions/upload-artifact@v4
44- if : ${{ always() }}
45- with :
46- name : foxclient-build-nightly-${{ env.ver }}
47- path : build/libs/*.jar
30+
31+ # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
32+ # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
33+ - name : Setup Gradle
34+ uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
35+
36+ - name : Build with Gradle Wrapper
37+ run : ./gradlew build
You can’t perform that action at this time.
0 commit comments