Skip to content

Commit 673afe3

Browse files
Update workflows
1 parent e84fe21 commit 673afe3

3 files changed

Lines changed: 35 additions & 68 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build InvUI
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
build:
11+
name: Build InvUI
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: 21
22+
distribution: adopt
23+
24+
- name: Build InvUI
25+
uses: gradle/gradle-build-action@v3
26+
with:
27+
cache-disabled: true
28+
arguments: clean build test

.github/workflows/codeql.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/javadoc.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Javadoc
22

33
on:
44
release:
5-
types: [ created ]
5+
types: [ released ]
66

77
jobs:
88
deploy:
@@ -20,23 +20,14 @@ jobs:
2020
with:
2121
java-version: 21
2222
distribution: adopt
23-
server-id: xenondevs-nms
24-
server-username: MAVEN_USERNAME
25-
server-password: MAVEN_PASSWORD
26-
27-
- name: Build with Maven
28-
run: mvn -B clean install -P xenondevs-nms
29-
env:
30-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
31-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
32-
23+
3324
- name: Create Javadoc
34-
run: mvn -B javadoc:javadoc -pl invui-core -P xenondevs-nms
35-
env:
36-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
37-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
25+
uses: gradle/gradle-build-action@v3
26+
with:
27+
cache-disabled: true
28+
arguments: javadoc
3829

3930
- name: Deploy to Github Pages
4031
uses: JamesIves/github-pages-deploy-action@v4.6.0
4132
with:
42-
folder: invui-core/target/site/apidocs/
33+
folder: invui/build/docs/javadoc/

0 commit comments

Comments
 (0)