diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 303c39179..e7c9bac0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: - uses: coursier/cache-action@v5 - name: Setup Scala - uses: olafurpg/setup-scala@v10 + uses: olafurpg/setup-scala@v14 with: java-version: "adopt@1.8" @@ -65,7 +65,7 @@ jobs: - uses: coursier/cache-action@v5 - name: Setup Scala - uses: olafurpg/setup-scala@v10 + uses: olafurpg/setup-scala@v14 with: java-version: "adopt@1.11.0-11" diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml index e6ac47685..a75203377 100644 --- a/.github/workflows/release_publish.yml +++ b/.github/workflows/release_publish.yml @@ -27,10 +27,19 @@ jobs: with: fetch-depth: 0 - uses: olafurpg/setup-scala@v14 - - name: Run sbt ci-release (produces war as well) + - name: Run sbt ci-release (produces jar as well) run: sbt ci-release env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} PGP_SECRET: ${{ secrets.PGP_SECRET }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + + - name: Find JAR file + id: find_jar + run: echo "JAR_PATH=$(find . -name 'server/target/jvm-2.13/*.jar' | head -n 1)" >> $GITHUB_ENV + + - name: Upload JAR file to GitHub Release + run: gh release upload ${{ github.event.release.tag_name }} ${{ env.JAR_PATH }} --repo ${{ github.repository }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}