-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (32 loc) · 951 Bytes
/
maven.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
name: Build gmc
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Build package
run: ./mvn.sh clean package
- name: Set build version
run: |
build_version=$(./mvn.sh initialize help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "BUILD_VERSION=$build_version" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: GlobalMarketChest-${{ env.BUILD_VERSION }}
path: target/GlobalMarketChest-*.jar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: target/GlobalMarketChest-*.jar