ignore all build directories but keep .github/actions/build

This commit is contained in:
ZekerZhayard committed 2026-05-21 13:09:26 +08:00
1 parent 756336e533
commit 0212d4d2f1
2 files changed
+36

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# Composite action: checkout, setup JDK, build with Gradle, upload artifact
name: Build
description: Build project with Gradle and upload artifact
inputs:
is-snapshot:
description: Whether this is a snapshot build
required: false
default: 'true'
artifact-name:
description: Artifact name for upload
required: true
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: gradle
- name: Build with Gradle
shell: pwsh
env:
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
run: ./gradlew clean build --info --stacktrace
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: Bootstrap/build/libs/
if-no-files-found: error
+1
View File
@@ -3,6 +3,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
!.github/actions/build
.kotlin
### IntelliJ IDEA ###