forked from DFScripting/DFScript
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 811 Bytes
/
build.yml
File metadata and controls
32 lines (30 loc) · 811 Bytes
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
name: Build
on:
push:
branches:
- '1.20'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew build '-Pversion=${{ github.run_number }}'
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: DFScript
path: ./build/libs/DFScript*.jar
- name: Publish Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "Build-${{ github.run_number }}"
prerelease: false
files: |
LICENSE
./build/libs/DFScript-${{ github.run_number }}.jar