Skip to content

Commit adfbc64

Browse files
committed
deploy and release CI workflows (DE-438)
1 parent a791127 commit adfbc64

File tree

5 files changed

+64
-8
lines changed

5 files changed

+64
-8
lines changed

.github/workflows/codeql.yml

+8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ on:
1515
push:
1616
branches:
1717
- master
18+
paths-ignore:
19+
- '.github/**'
20+
- 'docker/**'
21+
- 'docs/**'
22+
- 'tutorial/**'
23+
- 'ChangeLog.md'
24+
- 'README.md'
1825
pull_request:
1926
types: [ opened, synchronize, reopened ]
2027
branches:
2128
- master
29+
- main
2230
- v7
2331
- v6
2432
schedule:

.github/workflows/publish.yml renamed to .github/workflows/maven-deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Publish
1+
name: Deploy
22

33
on:
44
workflow_dispatch:
55
push:
6-
tags: [ v** ]
6+
tags: [ deploy** ]
77

88
jobs:
9-
verify:
9+
deploy:
1010
timeout-minutes: 20
1111
runs-on: ubuntu-latest
1212

@@ -27,7 +27,7 @@ jobs:
2727
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2828
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2929
- name: Publish to Apache Maven Central
30-
run: mvn deploy -Ddeploy -Dmaven.test.skip=true
30+
run: mvn --no-transfer-progress -Ddeploy -Dmaven.test.skip=true deploy
3131
env:
3232
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3333
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/maven-release.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags: [ release** ]
7+
8+
jobs:
9+
release:
10+
timeout-minutes: 20
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '8'
22+
distribution: 'adopt'
23+
cache: 'maven'
24+
server-id: ossrh
25+
server-username: MAVEN_USERNAME
26+
server-password: MAVEN_CENTRAL_TOKEN
27+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
28+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
29+
- name: Publish to Apache Maven Central
30+
run: mvn --no-transfer-progress -Ddeploy -Dmaven.test.skip=true deploy
31+
env:
32+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
33+
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
34+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
35+
- name: Release to Apache Maven Central
36+
run: mvn --no-transfer-progress -Ddeploy -Dmaven.test.skip=true nexus-staging:release
37+
env:
38+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
39+
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
40+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/native.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
4444
- name: Test Native
4545
working-directory: ${{matrix.module}}
46-
run: mvn -Pnative --no-transfer-progress test
46+
run: mvn --no-transfer-progress -Pnative test
4747

4848
test-native-ssl:
4949
timeout-minutes: 20
@@ -83,4 +83,4 @@ jobs:
8383
run: mvn --no-transfer-progress install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true
8484
- name: Test Native
8585
working-directory: ${{matrix.module}}
86-
run: mvn -Pnative --no-transfer-progress -Dgroups=ssl -DSslTest=true test
86+
run: mvn --no-transfer-progress -Pnative -Dgroups=ssl -DSslTest=true test

.github/workflows/maven.yml renamed to .github/workflows/test.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
name: Java CI
1+
name: Test
22

33
on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- '.github/**'
9+
- 'docker/**'
10+
- 'docs/**'
11+
- 'tutorial/**'
12+
- 'ChangeLog.md'
13+
- 'README.md'
714
pull_request:
815
types: [ opened, synchronize, reopened ]
916
branches:
1017
- master
18+
- main
1119
- v7
1220
- v6
1321

@@ -297,4 +305,4 @@ jobs:
297305
env:
298306
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
299307
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
300-
run: mvn -Pstatic-code-analysis -B --no-transfer-progress -Dgpg.skip=true -am -pl driver verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=arangodb_arangodb-java-driver
308+
run: mvn --no-transfer-progress -Pstatic-code-analysis -B -Dgpg.skip=true -am -pl driver verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=arangodb_arangodb-java-driver

0 commit comments

Comments
 (0)