Skip to content

Commit

Permalink
Broken release publish workflow action (#207)
Browse files Browse the repository at this point in the history
* debug info, workflow dispatch
  • Loading branch information
benedeki authored Jun 5, 2024
1 parent 76cba29 commit 654f170
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]"

- 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: "[email protected]"
#
# - 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:
Expand All @@ -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:
Expand Down

0 comments on commit 654f170

Please sign in to comment.