mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 00:39:37 +00:00
ignore all build directories but keep .github/actions/build
This commit is contained in:
1 parent
756336e533
commit
0212d4d2f1
2 files changed
+36
No files matched your search
@@ -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
|
||||
@@ -3,6 +3,7 @@ build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
!.github/actions/build
|
||||
.kotlin
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
|
||||
Reference in new issue
Block a user