-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (38 loc) · 1.18 KB
/
release.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
on:
push:
tags:
- '*'
name: Upload release asset
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build
run: mvn package
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
api/target/treasury-api-*-*-*.jar
api/target/treasury-api-*-*-*-javadoc.jar
api/target/treasury-api-*-*-*-sources.jar
platform/bukkit//target/treasury-bukkit-*-*-*.jar
platform/bungeecord/target/treasury-bungeecord-*-*-*.jar
platform/sponge/target/treasury-sponge-*-*-*.jar
platform/minestom/target/treasury-minestom-*-*-*.jar
platform/velocity/target/treasury-velocity-*-*-*.jar