Skip to content

Commit

Permalink
ci: preview build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Sep 21, 2024
1 parent 63fb6dd commit 64c4240
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build a preview version
on:
push:
branches:
- master
paths:
- '.github/workflows/preview-build.yml'
- 'src/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
pull_request:
paths:
- '.github/workflows/preview-build.yml'
- 'src/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout master
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'

- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew :shadowJar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: build/libs/*.jar

0 comments on commit 64c4240

Please sign in to comment.