-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (45 loc) · 1.36 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
name: Maven Package
on: ["release", "push", "pull_request"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: latest
- name: Setup Repo credentials
uses: s4u/maven-settings-action@v3.0.0
- name: Build Shesmu with Maven
run: mvn -B package --file pom.xml
- name: Build Shesmu JavaDoc with Maven
run: 'mvn javadoc:javadoc -pl shesmu-pluginapi --file pom.xml && mv shesmu-pluginapi/target/reports/apidocs docs/javadoc'
- name: Build Jekyll Documentation
uses: actions/jekyll-build-pages@v1
with:
source: docs
verbose: true
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
- name: Build and Push Docker images
if: ${{ github.event_name == 'release' }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
steps:
- name: Upload Pages artifact
if: ${{ github.event_name == 'release' }}
uses: actions/deploy-pages@v4