-
-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (32 loc) · 1.04 KB
/
loritta-pr.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
name: Build Loritta Helper Pull Request
on: [ pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get current time
uses: gerred/actions/current-time@master
id: current-time
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Runs a single command using the runners shell
- name: Build with Gradle
run: "./gradlew build -Dbuild.number=$GITHUB_RUN_NUMBER -Dgit.branch=$GITHUB_REF -Dcommit.hash=$GITHUB_SHA -Dcompiled.at=${{ steps.current-time.outputs.time }}"
# Upload Artifacts to GitHub
# Loritta
- uses: actions/upload-artifact@v2
name: "Upload Loritta Helper"
with:
name: Loritta Helper (Discord)
path: build/libs/loritta-helper-*.jar
# Libs
- uses: actions/upload-artifact@v2
name: "Upload Loritta Helper's Libs"
with:
name: Loritta Helper (Libs)
path: libs/*