Skip to content

Commit 9dc2678

Browse files
committed
action init
1 parent f4f70b4 commit 9dc2678

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build & Publish
2+
3+
on:
4+
push:
5+
tags: [ "*" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v5
14+
15+
- name: Generate changelog
16+
id: changelog
17+
uses: metcalfc/[email protected]
18+
with:
19+
myToken: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v5
23+
with:
24+
java-version: '21'
25+
distribution: 'temurin'
26+
cache: maven
27+
28+
- name: Build with Maven
29+
run: mvn clean install
30+
31+
- name: Generate Javadocs
32+
run: mvn javadoc:aggregate-no-fork
33+
- name: Deploy Javadocs
34+
uses: peaceiris/actions-gh-pages@v4
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./target/reports/apidocs
38+
39+
- name: Release
40+
uses: softprops/action-gh-release@v2
41+
with:
42+
body: ${{ steps.changelog.outputs.changelog }}
43+
draft: false
44+
prerelease: false

.github/workflows/maven.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build & Upload
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- name: Set up JDK 21
15+
uses: actions/setup-java@v5
16+
with:
17+
java-version: '21'
18+
distribution: 'temurin'
19+
cache: maven
20+
- name: Unshallow
21+
run: git fetch --unshallow --quiet
22+
- name: Build with Maven
23+
run: mvn -B package
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Upload artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: "Topper"
30+
path: "**/topper*.jar"

0 commit comments

Comments
 (0)