Skip to content

Commit 7513c87

Browse files
Update workflows
1 parent e84fe21 commit 7513c87

File tree

3 files changed

+37
-68
lines changed

3 files changed

+37
-68
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build InvUI
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
build:
13+
name: Build InvUI
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: 21
24+
distribution: adopt
25+
26+
- name: Build InvUI
27+
uses: gradle/gradle-build-action@v3
28+
with:
29+
cache-disabled: true
30+
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/[email protected]
4132
with:
42-
folder: invui-core/target/site/apidocs/
33+
folder: invui/build/docs/javadoc/

0 commit comments

Comments
 (0)