forked from lingeringsocket/jgrapht
-
Notifications
You must be signed in to change notification settings - Fork 819
57 lines (49 loc) · 1.41 KB
/
master-workflow.yaml
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
name: JGrapht Master build
on:
push:
branches:
- master
paths-ignore:
- 'CONTRIBUTORS.md'
- 'HISTORY.md'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: |
set -e
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V && mvn verify -B && mvn javadoc:aggregate && mvn checkstyle:check -P checkstyle
- uses: actions/setup-node@v4
with:
node-version: 14
cache: 'npm'
- run: npm install -g hercule@5.0.0
- name: Run prepareDocs script
run: ./etc/prepareDocs.sh
shell: bash
- name: Deploy snapshot to Sonatype
env:
SONATYPE_USER: ${{ secrets.CI_DEPLOY_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
run: mvn deploy -DskipTests=true --settings etc/snapshot-settings.xml
shell: bash
- name: Publish Github Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
token: ${{ secrets.PAGES_TOKEN }}
branch: gh-pages
folder: docs
clean: true