-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.41 KB
/
maven.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
name: Maven Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload geoc.zip
uses: actions/upload-artifact@v2
with:
name: geoc.zip
path: target/geocommands*-app.zip
- name: Upload geoc.jar
uses: actions/upload-artifact@v2
with:
name: geoc.jar
path: target/geoc-app*.jar
- name: Upload geoc.pdf
uses: actions/upload-artifact@v2
with:
name: geoc.pdf
path: target/generated-docs/index.pdf
- name: Sphinx build
uses: ammaraskar/sphinx-action@0.4
with:
docs-folder: "src/website"
pre-build-command: "apt-get update -y && apt-get install -y gcc"
- name: Deploy website
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: src/website/build/html
CLEAN: false
- name: Deploy manual
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/generated-docs
TARGET_FOLDER: manual
CLEAN: false