File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Java CI with Gradle
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-package :
10+ runs-on : ubuntu-latest
11+
12+ env :
13+ JAVA_HOME : ${{ github.workspace }}/graalvm-community-openjdk-17.0.9+9.1
14+
15+ steps :
16+ - name : Check out code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK 17 from GraalVM
20+ run : |
21+ echo "${{ env.JAVA_HOME }}/bin" >> $GITHUB_PATH
22+ wget https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz
23+ tar -xvzf graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz
24+ ${{ env.JAVA_HOME }}/bin/gu install native-image
25+
26+ - name : Make gradlew executable
27+ run : chmod +x ./gradlew
28+
29+ - name : Build with Gradle
30+ run : ./gradlew clean fatJar
31+
32+ - name : Determine new tag
33+ id : newtag
34+ run : echo "::set-output name=tag::$(date +'%Y%m%dT%H%M%S')"
35+
36+ - name : Create Git Tag
37+ run : git tag ${{ steps.newtag.outputs.tag }} && git push origin ${{ steps.newtag.outputs.tag }}
38+
39+ - name : Publish Release
40+ uses : softprops/action-gh-release@v1
41+ with :
42+ files : build/libs/codeanalyzer.jar
43+ tag_name : ${{ steps.newtag.outputs.tag }}
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments