Skip to content

Commit

Permalink
Added: publish to Maven Central in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed Nov 21, 2019
1 parent c5f4547 commit 5badba6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -27,3 +27,19 @@ jobs:
echo "Run] sbt publish"
echo 'sbt -J-Xmx2048m "; clean; publish"'
sbt -J-Xmx2048m "; clean; publish"
- name: Sync to Maven Central
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
run: |
PROJECT_VERSION="${GITHUB_REF#refs/tags/v}"
BINTRAY_SUBJECT=kevinlee
BINTRAY_REPO=maven
BINTRAY_PACKAGE=j8plus
echo "BINTRAY_SUBJECT: $BINTRAY_SUBJECT"
echo " BINTRAY_REPO: $BINTRAY_REPO"
echo "BINTRAY_PACKAGE: $BINTRAY_PACKAGE"
echo "PROJECT_VERSION: $PROJECT_VERSION"
echo "Sync to Maven Central..."
curl --user $BINTRAY_USER:$BINTRAY_PASS -X POST "https://api.bintray.com/maven_central_sync/$BINTRAY_SUBJECT/$BINTRAY_REPO/$BINTRAY_PACKAGE/versions/$PROJECT_VERSION"

0 comments on commit 5badba6

Please sign in to comment.