Skip to content

Commit 7e397f2

Browse files
authored
Merge pull request #68 from BuildTheEarth/build
Improve the plugin for 0.2.0-alpha Release
2 parents 2bafcfd + 11707a5 commit 7e397f2

File tree

201 files changed

+66433
-5520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+66433
-5520
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0 # full history
24+
fetch-tags: true # grab your tags
25+
# Make sure we check out by branch name, not just SHA:
26+
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
27+
28+
- name: Set up JDK 21
29+
uses: actions/setup-java@v5
30+
with:
31+
java-version: '21'
32+
distribution: 'temurin'
33+
34+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
35+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
36+
- name: Setup Gradle
37+
uses: gradle/actions/setup-gradle@v5
38+
39+
- name: Build with Gradle Wrapper
40+
run: ./gradlew clean build
41+
42+
- uses: actions/upload-artifact@v6
43+
with:
44+
name: Staging-Build
45+
path: build/libs
46+
compression-level: '9'

0 commit comments

Comments
 (0)