Set env vars only on publish step
This commit is contained in:
parent
8893187a3a
commit
a4fe9f6fa8
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
@ -96,13 +96,6 @@ jobs:
|
||||
publishWatchosSimulatorArm64PublicationToMavenRepository
|
||||
publishWatchosX64PublicationToMavenRepository
|
||||
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
|
||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
|
||||
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
||||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
|
||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
@ -127,3 +120,9 @@ jobs:
|
||||
|
||||
- name: Publish with Gradle Wrapper
|
||||
run: ./gradlew ${{ matrix.tasks }}
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
|
||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
|
||||
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
||||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
|
||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
|
||||
|
Loading…
Reference in New Issue
Block a user