Skip to content

Commit

Permalink
build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ai2473 committed Apr 8, 2024
1 parent 5e31473 commit 1c23b1d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Gradle Build

on:
push:
workflow_dispatch:
pull_request:
types: [opened, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2

- name: Set Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: corretto

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: shoreline
path: ./build/libs/*.jar

0 comments on commit 1c23b1d

Please sign in to comment.