Skip to content

Commit

Permalink
Added GH workflow for building
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Oct 17, 2023
1 parent 862e286 commit e8d2ad0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build
on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
check-latest: true
- name: Build with Gradle
run: ./gradlew build
- name: Upload Artifacts to GitHub
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit e8d2ad0

Please sign in to comment.