1212 default : " master"
1313
1414jobs :
15- release-scala-2-12 :
15+ release :
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : checkout the repo
@@ -37,122 +37,14 @@ jobs:
3737 - name : Launch pulsar docker
3838 run : docker-compose up -d
3939
40- - name : Import GPG key
41- id : import_gpg
42- uses : crazy-max/ghaction-import-gpg@v6
43- with :
44- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
45- passphrase : ${{ secrets.PGP_PASSPHRASE }}
46-
47- - name : GPG user IDs
48- run : |
49- echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
50- echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
51- echo "name: ${{ steps.import_gpg.outputs.name }}"
52- echo "email: ${{ steps.import_gpg.outputs.email }}"
53-
54- - name : run tests
55- run : sbt ++2.12 test
56-
57- - name : publish release
58- run : sbt ++2.12 publishSigned
59- env :
60- RELEASE_VERSION : ${{ github.event.inputs.version }}
61- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
62- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
63-
64- release-scala-2-13 :
65- runs-on : ubuntu-latest
66- steps :
67- - name : checkout the repo
68- uses : actions/checkout@v2
69- with :
70- fetch-depth : 0
71-
72- - uses : awalsh128/cache-apt-pkgs-action@latest
73- with :
74- packages : docker-compose
75- version : 1.0
76-
77- - name : Set up JDK
78- uses : actions/setup-java@v4
79- with :
80- distribution : temurin
81- java-version : 17
82-
83- - name : Setup sbt launcher
84- uses : sbt/setup-sbt@v1
85-
86- - name : Launch pulsar docker
87- run : docker-compose up -d
88-
89- - name : Import GPG key
90- id : import_gpg
91- uses : crazy-max/ghaction-import-gpg@v6
92- with :
93- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
94- passphrase : ${{ secrets.PGP_PASSPHRASE }}
95-
96- - name : GPG user IDs
97- run : |
98- echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
99- echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
100- echo "name: ${{ steps.import_gpg.outputs.name }}"
101- echo "email: ${{ steps.import_gpg.outputs.email }}"
102-
103- - name : run tests
104- run : sbt ++2.13 test
105-
106- - name : publish release
107- run : sbt ++2.13 publishSigned
108- env :
109- RELEASE_VERSION : ${{ github.event.inputs.version }}
110- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
111-
112- release-scala-3 :
113- runs-on : ubuntu-latest
114- steps :
115- - name : checkout the repo
116- uses : actions/checkout@v2
117- with :
118- fetch-depth : 0
119-
120- - uses : awalsh128/cache-apt-pkgs-action@latest
121- with :
122- packages : docker-compose
123- version : 1.0
124-
125- - name : Set up JDK
126- uses : actions/setup-java@v4
127- with :
128- distribution : temurin
129- java-version : 17
130-
131- - name : Setup sbt launcher
132- uses : sbt/setup-sbt@v1
133-
134- - name : Launch pulsar docker
135- run : docker-compose up -d
136-
137- - name : Import GPG key
138- id : import_gpg
139- uses : crazy-max/ghaction-import-gpg@v6
140- with :
141- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
142- passphrase : ${{ secrets.PGP_PASSPHRASE }}
143-
144- - name : GPG user IDs
145- run : |
146- echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
147- echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
148- echo "name: ${{ steps.import_gpg.outputs.name }}"
149- echo "email: ${{ steps.import_gpg.outputs.email }}"
150-
15140 - name : run tests
152- run : sbt ++3.6 test
41+ run : sbt + test
15342
15443 - name : publish release
155- run : sbt ++3.6 publishSigned
15644 env :
157- RELEASE_VERSION : ${{ github.event.inputs.version }}
158- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
45+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
46+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
47+ SONATYPE_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
48+ SONATYPE_PASSWORD : ${{ secrets.CENTRAL_TOKEN }}
49+ CI_SONATYPE_RELEASE : sonatypeBundleRelease
50+ run : sbt ci-release
0 commit comments