Skip to content

Commit 7bb53a7

Browse files
committed
ci: startup test 2 - mirror publish structure
1 parent 54c8034 commit 7bb53a7

1 file changed

Lines changed: 37 additions & 3 deletions

File tree

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

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,43 @@ permissions:
77
contents: read
88

99
jobs:
10-
ping:
11-
name: Ping
10+
test:
11+
name: Build & Test
1212
runs-on: ubuntu-latest
1313
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+
1423
- name: Echo
15-
run: echo "startup ok"
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"
45+
env:
46+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
47+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
48+
SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
49+
SIGNING_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)