File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # workflow for re-running publishing to Sonatype in case it fails for some reason
2+ # you can run this workflow by navigating to https://www.github.com/lithic-com/lithic-java/actions/workflows/publish-sonatype.yml
3+ name : Publish Sonatype
4+ on :
5+ workflow_dispatch :
6+
7+ jobs :
8+ publish :
9+ name : publish
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+
15+ - name : Set up Java
16+ uses : actions/setup-java@v3
17+ with :
18+ distribution : temurin
19+ java-version : |
20+ 8
21+ 17
22+ cache : gradle
23+
24+ - name : Set up Gradle
25+ uses : gradle/gradle-build-action@v2
26+
27+ - name : Publish to Sonatype
28+ run : |
29+ ./gradlew publish
30+ env :
31+ SONATYPE_USERNAME : ${{ secrets.LITHIC_SONATYPE_USERNAME }}
32+ SONATYPE_PASSWORD : ${{ secrets.LITHIC_SONATYPE_PASSWORD }}
33+ GPG_SIGNING_KEY : ${{ secrets.LITHIC_SONATYPE_GPG_SIGNING_KEY }}
34+ GPG_SIGNING_PASSWORD : ${{ secrets.LITHIC_SONATYPE_GPG_SIGNING_PASSWORD }}
Original file line number Diff line number Diff line change 2828 8
2929 17
3030 cache : gradle
31+
3132 - name : Set up Gradle
3233 if : ${{ steps.release.outputs.releases_created }}
3334 uses : gradle/gradle-build-action@v2
You can’t perform that action at this time.
0 commit comments