-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broken release publish workflow action (#207)
* debug info, workflow dispatch
- Loading branch information
Showing
1 changed file
with
31 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|