Skip to content

Commit d9979a3

Browse files
committed
feat(ci): add a publish-sonatype workflow for manual running (#38)
1 parent ab49de5 commit d9979a3

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
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

0 commit comments

Comments
 (0)