Skip to content

Commit 87b974c

Browse files
ci: fix: pass secrets to release workflows
Reusable workflows don't automatically get access to repository secrets: https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows#using-inputs-and-secrets-in-a-reusable-workflow
1 parent c25d305 commit 87b974c

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,21 @@ jobs:
269269
publish-jvm:
270270
needs: prepare-publish
271271
uses: ./.github/workflows/publish-jvm.yml
272+
secrets:
273+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
274+
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
275+
PGP_SIGNING_KEY: ${{ secrets.PGP_SIGNING_KEY }}
276+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
277+
272278

273279
publish-android:
274280
needs: prepare-publish
275281
uses: ./.github/workflows/publish-android.yml
282+
secrets:
283+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
284+
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
285+
PGP_SIGNING_KEY: ${{ secrets.PGP_SIGNING_KEY }}
286+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
276287

277288
publish-ios:
278289
needs: prepare-publish
@@ -281,3 +292,5 @@ jobs:
281292
publish-web:
282293
needs: prepare-publish
283294
uses: ./.github/workflows/publish-wasm.yml
295+
secrets:
296+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-android.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ concurrency:
55

66
on:
77
workflow_call:
8+
secrets:
9+
SONATYPE_PASSWORD:
10+
required: true
11+
PGP_KEY_ID:
12+
required: true
13+
PGP_SIGNING_KEY:
14+
required: true
15+
PGP_PASSPHRASE:
16+
required: true
817

918
env:
1019
RELEASE: 1

.github/workflows/publish-jvm.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ concurrency:
55

66
on:
77
workflow_call:
8+
secrets:
9+
SONATYPE_PASSWORD:
10+
required: true
11+
PGP_KEY_ID:
12+
required: true
13+
PGP_SIGNING_KEY:
14+
required: true
15+
PGP_PASSPHRASE:
16+
required: true
817

918
env:
1019
RELEASE: 1

.github/workflows/publish-wasm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ concurrency:
55

66
on:
77
workflow_call:
8+
secrets:
9+
NPM_TOKEN:
10+
required: true
811

912
env:
1013
RELEASE: 1

0 commit comments

Comments
 (0)