Add automatic artifact builds on push (#426)
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up OpenJDK 17
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'adopt' # You can choose other OpenJDK distributions.
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build # Ensure your gradlew script is executable
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: AE2-UEL
|
||||||
|
path: build/libs/*.jar # Make sure this path matches the location of your build artifacts
|
||||||
Reference in New Issue
Block a user