-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 928 Bytes
/
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
name: Build and Release
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get tag or commit id
id: get-version-id
uses: iawia002/get-tag-or-commit-id@v1
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Clean Maven
run: mvn clean
- name: Install dependencies and build
run: mvn install
- name: Run Jar
run: java -jar target/NeoForgeServerJAR.jar
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
target/NeoForgeServerJAR.jar
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.get-version-id.outputs.id }}
draft: false
prerelease: false