-
Notifications
You must be signed in to change notification settings - Fork 456
67 lines (61 loc) · 1.77 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build Project
on:
push:
branches-ignore:
- 'dependabot/**'
tags:
- r[0-9]*
workflow_dispatch:
jobs:
CodeAudits:
uses: evanchooly/workflows/.github/workflows/code-audits.yml@master
Build:
uses: evanchooly/workflows/.github/workflows/build.yml@master
with:
saveBuild: true
Test:
needs:
- CodeAudits
- Build
strategy:
matrix:
java: [ 11 ]
mongo: [ 6.0.4, 5.0.15, 4.4.19, 4.2.24, 4.0.28 ]
driver: [ 4.6.1, 4.7.2 ]
include:
- java: 19
mongo: 6.0.4
driver: 4.7.2
- java: 20
mongo: 6.0.4
driver: 4.7.2
uses: evanchooly/workflows/.github/workflows/build.yml@master
with:
java: ${{ matrix.java }}
reuseBuild: true
archive-name: "${{matrix.mongo}}-${{matrix.driver}}-${{matrix.java}}-${{github.run_id}}"
maven-flags: "-e -Dmongodb=${{ matrix.mongo }} -Ddriver.version=${{ matrix.driver }}"
Release:
if: github.ref_type == 'branch' || github.ref_type == 'tag'
needs:
- Test
uses: evanchooly/workflows/.github/workflows/release.yml@master
secrets:
GH_PUSH_TOKEN : ${{ secrets.GH_PUSH_TOKEN }}
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
Docs:
name: Update Documentation
runs-on: ubuntu-latest
needs:
- Release
steps:
- name: Invoke antora build
uses: benc-uk/workflow-dispatch@v121
with:
workflow: Docs
repo: MorphiaOrg/morphia-docs
token: ${{ secrets.GH_PUSH_TOKEN }}
ref: refs/heads/master