Browse Source

Update release.yml

Try to pass the tag name as a parameter to the Gradle build
Toni Helenius 3 years ago
parent
commit
87ed3e3ce5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      .github/workflows/release.yml

+ 3 - 2
.github/workflows/release.yml

@@ -10,13 +10,14 @@ jobs:
     steps:
     - uses: actions/checkout@v2
     - name: Set up JDK 11
-      uses: actions/setup-java@v1
+    - uses: actions/setup-java@v3
       with:
+        distribution: temurin
         java-version: 11
     - name: Grant execute permission for gradle
       run: chmod +x gradlew
     - name: Build the SDK
-      run: ./gradlew buildSdk
+      run: ./gradlew buildSdk -Ptag_name=${{ github.ref_name }}
     - name: Build the JDKs
       run: bash download-jdks.sh
       working-directory: jdks