-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.08 KB
/
Copy pathmain.yml
File metadata and controls
39 lines (34 loc) · 1.08 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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the jda-port branch
push:
branches: [ jda-port ]
pull_request:
branches: [ jda-port ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Gradle +x
run: chmod +x gradlew
- name: Run Gradle Build
run: ./gradlew jar
- name: Copy dependencies
run: ./gradlew copyAllDependencies
- run: mkdir staging && rm -r build/tmp && rm -r build/classes && rm -r build/resources && cp -R build/* staging && cp -R conf/ staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging