File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Release ScyllaDB Java Driver
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ dryrun :
7
+ type : boolean
8
+ description : ' dryrun: run without pushing SCM changes to upstream'
9
+ default : true
10
+
11
+ jobs :
12
+ release :
13
+ name : Release
14
+ runs-on : ubuntu-22.04
15
+
16
+ permissions :
17
+ contents : write
18
+
19
+ env :
20
+ MVNCMD : mvn -B -X -ntp
21
+
22
+ steps :
23
+ - name : Checkout Repository
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Set up Java
27
+ uses : actions/setup-java@v3
28
+ with :
29
+ java-version : ' 8'
30
+ distribution : ' adopt'
31
+ server-id : ossrh
32
+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
33
+ server-username : OSSRH_USERNAME
34
+ server-password : OSSRH_PASSWORD
35
+
36
+ - name : Configure Git user
37
+ run : |
38
+ git config user.name "ScyllaDB Promoter"
39
+ git config user.email "[email protected] "
40
+
41
+ - name : Clean project
42
+ run : $MVNCMD clean
43
+
44
+ - name : Clean release
45
+ run : $MVNCMD release:clean
46
+
47
+ - name : Prepare release
48
+ env :
49
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
50
+ run : $MVNCMD release:prepare -DpushChanges=false -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
51
+
52
+ - name : Perform release
53
+ env :
54
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
55
+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
56
+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
57
+ if : ${{ github.event.inputs.dryrun == 'false' }}
58
+ run : $MVNCMD release:perform -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
59
+
60
+ - name : Push changes to SCM
61
+ if : ${{ github.event.inputs.dryrun == 'false' }}
62
+ run : |
63
+ git status && git log -3
64
+ git push origin --follow-tags -v
Original file line number Diff line number Diff line change 95
95
<graalapi .version>22.0.0.2</graalapi .version>
96
96
<skipTests >false</skipTests >
97
97
<skipUnitTests >${skipTests}</skipUnitTests >
98
+ <pushChanges >false</pushChanges >
98
99
</properties >
99
100
<dependencyManagement >
100
101
<dependencies >
537
538
<plugin >
538
539
<artifactId >maven-deploy-plugin</artifactId >
539
540
<version >2.8.2</version >
541
+ <configuration >
542
+ <deployAtEnd >true</deployAtEnd >
543
+ </configuration >
540
544
<executions >
541
545
<execution >
542
546
<id >default-deploy</id >
@@ -847,7 +851,8 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
847
851
<!-- useReleaseProfile>false</useReleaseProfile>
848
852
<releaseProfiles>release</releaseProfiles>
849
853
<goals>deploy</goals-->
850
- <pushChanges >true</pushChanges >
854
+ <localCheckout >true</localCheckout >
855
+ <pushChanges >${pushChanges} </pushChanges >
851
856
<mavenExecutorId >forked-path</mavenExecutorId >
852
857
<arguments >-Dgpg.passphrase=${gpg.passphrase} </arguments >
853
858
<!-- Our integration tests are too long to run during a release, we run them in CI -->
You can’t perform that action at this time.
0 commit comments