Skip to content

Commit

Permalink
Added: Sync to Maven Central in Release build in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed Dec 8, 2019
1 parent 72463bd commit 3be315b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ jobs:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
run: |
echo "Run] sbt GitHub release"
echo "Run] sbt publish"
echo 'sbt -J-Xmx2048m "; project core; clean; +publish"'
sbt -J-Xmx2048m "; project core; clean; +publish"
- name: Sync core 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=maven2sbt-core
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 3be315b

Please sign in to comment.