Skip to content

Commit d609c94

Browse files
committed
Add environment secrets to release workflow
1 parent f805375 commit d609c94

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
name: Release
2-
3-
on:
4-
workflow_dispatch
5-
1+
name: Publish Release
2+
on: workflow_dispatch
63
jobs:
7-
build:
8-
4+
publish:
95
runs-on: ubuntu-latest
106
permissions:
117
contents: write
@@ -24,8 +20,16 @@ jobs:
2420
- name: Setup Gradle
2521
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
2622

23+
- name: Build
24+
run: ./gradlew build
25+
2726
- name: Publish
28-
run: ./gradlew build publishAndReleaseToMavenCentral --no-configuration-cache
27+
run: ./gradlew publishAndReleaseToMavenCentral
28+
env:
29+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
30+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
31+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
32+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
2933

3034
- name: Get Release Version
3135
shell: bash

0 commit comments

Comments
 (0)