-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 926 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
name: Build jar
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload jar
uses: actions/upload-artifact@v2
with:
name: cubingPaper
path: target/paperspigot-1.8.8-R0.1-SNAPSHOT.jar
- name: Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: target/paperspigot-1.8.8-R0.1-SNAPSHOT.jar
draft: false
prerelease: true
releaseName: ${{ github.ref }}
releaseNotes: |
This is an automated release.