diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml index 9748c4ea1..7f34a7379 100644 --- a/.github/workflows/release_publish.yml +++ b/.github/workflows/release_publish.yml @@ -16,32 +16,33 @@ name: Release - publish artifacts on: - release: - types: [released] + workflow_dispatch: +# release: +# types: [released] jobs: - publish-to-sonatype: - name: Publish to Sonatype - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: coursier/cache-action@v5 - - - name: Setup Scala - uses: olafurpg/setup-scala@v14 - with: - java-version: "adopt@1.8" - - - name: Run sbt ci-release - 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 }} +# publish-to-sonatype: +# name: Publish to Sonatype +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v4 +# with: +# fetch-depth: 0 +# - uses: coursier/cache-action@v5 +# +# - name: Setup Scala +# uses: olafurpg/setup-scala@v14 +# with: +# java-version: "adopt@1.8" +# +# - name: Run sbt ci-release +# run: sbt "project model" ci-release "project agent_spark3" ci-release +# env: +# PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} +# PGP_SECRET: ${{ secrets.PGP_SECRET }} +# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} +# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} publish-server-jar: @@ -65,6 +66,12 @@ jobs: id: find_jar run: echo "JAR_PATH=$(find . -name 'server/target/jvm-2.13/*.jar' | head -n 1)" >> $GITHUB_ENV + - name: Info on publish + run: | + echo "Server release: ${{ github.event.release.tag_name }}" + echo "Published file: ${{ env.JAR_PATH }}" + echo "In repo: ${{ github.repository }}" + - name: Upload JAR file to GitHub Release run: gh release upload ${{ github.event.release.tag_name }} ${{ env.JAR_PATH }} --repo ${{ github.repository }} env: