Skip to content

Commit f43fbdc

Browse files
committed
ci: startup test 3 - single job with secrets
1 parent 7bb53a7 commit f43fbdc

1 file changed

Lines changed: 13 additions & 34 deletions

File tree

‎.github/workflows/startup-test.yml‎

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,27 @@ name: Startup test
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
which:
7+
description: 'Which secrets to reference'
8+
required: true
9+
type: choice
10+
options:
11+
- sonatype
12+
- gpg
513

614
permissions:
715
contents: read
816

917
jobs:
10-
test:
11-
name: Build & Test
18+
probe:
19+
name: Probe ${{ inputs.which }}
1220
runs-on: ubuntu-latest
1321
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
17-
- name: Set up JDK 17
18-
uses: actions/setup-java@v5
19-
with:
20-
distribution: 'temurin'
21-
java-version: '17'
22-
2322
- name: Echo
24-
run: echo "test job ok"
25-
26-
publish:
27-
name: Publish
28-
runs-on: ubuntu-latest
29-
needs: test
30-
permissions:
31-
contents: write
32-
packages: write
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
37-
- name: Set up JDK 17
38-
uses: actions/setup-java@v5
39-
with:
40-
distribution: 'temurin'
41-
java-version: '17'
42-
43-
- name: Echo secrets
44-
run: echo "publish job ok"
23+
run: echo "ok"
4524
env:
4625
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4726
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
48-
SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
49-
SIGNING_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}
27+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
28+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)