Skip to content

Commit

Permalink
Separate GitHub Actions job step for Maven Central sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed Oct 31, 2019
1 parent 9533647 commit fa0fd92
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -20,6 +20,14 @@ jobs:
echo 'sbt -J-Xmx2048m "; clean; +test; +packagedArtifacts; gitHubRelease"'
sbt -J-Xmx2048m "; clean; +test; +packagedArtifacts; gitHubRelease"
- name: sbt Publish
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
run: |
echo "Run] sbt GitHub release"
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 }}
Expand All @@ -28,9 +36,9 @@ jobs:
BINTRAY_SUBJECT=kevinlee
BINTRAY_REPO=maven
BINTRAY_PACKAGE=just-fp
echo "BINTRAY_SUBJECT: $BINTRAY_SUBJECT"
echo " BINTRAY_REPO: $BINTRAY_REPO"
echo "BINTRAY_PACKAGE: $BINTRAY_PACKAGE"
echo "PROJECT_VERSION: $PROJECT_VERSION"
echo "Run] sbt GitHub release"
echo 'sbt -J-Xmx2048m "; clean; +publish"'
sbt -J-Xmx2048m "; clean; +publish"
echo "Maven Central Sync..."
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 fa0fd92

Please sign in to comment.