Skip to content

Commit 476294d

Browse files
committed
ci: add release flow
1 parent 63cf0a1 commit 476294d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: coursier/cache-action@v6
12+
- name: Get Secrets
13+
uses: bitwarden/sm-action@v1
14+
with:
15+
access_token: ${{ secrets.BW_ACCESS_TOKEN }}
16+
secrets: |
17+
b2ba755b-d997-459f-a1a1-b06001257c2c > SIGNING
18+
e5a2f416-de5c-4f2d-bc09-b060011d760b > USERNAME
19+
44adbbc1-df7f-432f-8034-b060011d5d94 > PASS
20+
88fba8d9-e11a-4d8c-bfbd-b06001410130 > SIGNING_PASS
21+
- name: Get JVMs
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: |
26+
17
27+
19
28+
- run: echo $SIGNING | base64 -d | gpg --import --batch --no-tty
29+
- name: Publish Core
30+
run: |
31+
./mill core.publish --sonatypeCreds "$USERNAME:$PASS" --gpgArgs "--batch" --gpgArgs "--yes" --gpgArgs "-a" --gpgArgs "-b" --gpgArgs "--no-tty" --gpgArgs "--pinentry-mode" --gpgArgs "loopback" --gpgArgs "--passphrase" --gpgArgs "$SIGNING_PASS" --release true
32+
env:
33+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
34+
- name: Publish J17
35+
run: |
36+
./mill j17.publish --sonatypeCreds --gpgArgs "--batch" --gpgArgs "--yes" --gpgArgs "-a" --gpgArgs "-b" --gpgArgs "--no-tty" --gpgArgs "--pinentry-mode" --gpgArgs "loopback" --gpgArgs "--passphrase" --gpgArgs "$SIGNING_PASS" --release true
37+
env:
38+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
39+
40+
- name: Publish J19
41+
run: ./mill j19.publish --sonatypeCreds --gpgArgs "--batch" --gpgArgs "--yes" --gpgArgs "-a" --gpgArgs "-b" --gpgArgs "--no-tty" --gpgArgs "--pinentry-mode" --gpgArgs "loopback" --gpgArgs "--passphrase" --gpgArgs "$SIGNING_PASS" --release true
42+
43+
- name: Publish Runtime
44+
run: ./mill runtime.publish --sonatypeCreds "$USERNAME:$PASS" --gpgArgs "--batch" --gpgArgs "--yes" --gpgArgs "-a" --gpgArgs "-b" --gpgArgs "--no-tty" --gpgArgs "--pinentry-mode" --gpgArgs "loopback" --gpgArgs "--passphrase" --gpgArgs "$SIGNING_PASS" --release true
45+
env:
46+
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}

0 commit comments

Comments
 (0)