-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (44 loc) · 1.11 KB
/
build.yml
File metadata and controls
46 lines (44 loc) · 1.11 KB
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:
branches:
- '1.20.4'
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
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