-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.1 KB
/
call-upload-artifacts.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: "Upload artifacts"
on:
workflow_call:
jobs:
upload_artifacts:
name: Build and upload
runs-on: ubuntu-latest
strategy:
matrix:
include:
- id: "bukkit"
task: ":instances:bukkit:shadowJar"
steps:
- name: Checkout Git repo
uses: actions/checkout@v4
- uses: christian-draeger/[email protected]
id: properties
with:
path: './gradle.properties'
properties: 'makeevrserg.project.name'
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- name: Give gradle permission
run: chmod +x gradlew
- name: Build with Gradle ${{ matrix.id }}
uses: gradle/gradle-build-action@v3
with:
arguments: ${{ matrix.task }} --stacktrace
- uses: actions/upload-artifact@184d73b71b93c222403b2e7f1ffebe4508014249
name: "Upload ${{ matrix.id }}"
with:
name: ${{ matrix.id }}
path: ./jars/${{ steps.properties.outputs.makeevrserg-project-name }}-${{ matrix.id }}*.jar