Skip to content

Commit ee8a6bb

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

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: Release to Apache Maven Central
30+
run: mvn -Ddeploy -Dmaven.test.skip=true nexus-staging:release
31+
env:
32+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
33+
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
34+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

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

Lines changed: 9 additions & 1 deletion
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

0 commit comments

Comments
 (0)