-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (46 loc) · 1.16 KB
/
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
46
name: Build
on: push
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run maven build
run: mvn clean package
- name: Upload XGlow
uses: actions/upload-artifact@v3
with:
name: XGlow
path: plugin/target/*.jar
- name: Upload XGlowExample
uses: actions/upload-artifact@v3
with:
name: XGlowExample
path: example/target/*.jar
release:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
steps:
- name: Download artifact (XGlow)
uses: actions/download-artifact@v3
with:
name: XGlow
path: plugin
- name: Download artifact (XGlowExample)
uses: actions/download-artifact@v3
with:
name: XGlowExample
path: example
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: |
plugin/*.jar
example/*.jar
draft: true