Skip to content

Commit

Permalink
Add automatic artifact builds on push
Browse files Browse the repository at this point in the history
(cherry picked from commit 5f20e3346cf973ab42da8f57c3c73bc83c972bf4)
  • Loading branch information
zeng-github01 authored and NotMyWing committed May 17, 2024
1 parent 09e2b83 commit 886b08a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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: NAE2
path: build/libs/*.jar # Make sure this path matches the location of your build artifacts

0 comments on commit 886b08a

Please sign in to comment.