diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 985bfd5..eb4db86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,7 +122,7 @@ jobs: id: file_info run: | shopt -s extglob - FILE_PATHS=$(ls ${{ format('build-artifacts/{0}/build/libs/!(*-@(dev|sources)).jar', matrix.subproject) }}) + FILE_PATHS=$(ls ${{ format('build-artifacts/{0}/build/libs/!(*-@(dev|sources|shadow)).jar', matrix.subproject) }}) if (( ${#FILE_PATHS[@]} != 1 )); then echo "Error: Found ${#FILE_PATHS[@]} files, expected exactly 1" exit 1 diff --git a/.github/workflows/scripts/summary.py b/.github/workflows/scripts/summary.py index 4fa2bd8..6f2bebe 100644 --- a/.github/workflows/scripts/summary.py +++ b/.github/workflows/scripts/summary.py @@ -50,7 +50,7 @@ def main(): game_versions = read_prop('versions/{}/gradle.properties'.format(subproject), 'game_versions') game_versions = game_versions.strip().replace('\\n', ', ') file_paths = glob.glob('build-artifacts/{}/build/libs/*.jar'.format(subproject)) - file_paths = list(filter(lambda fp: not fp.endswith('-sources.jar') and not fp.endswith('-dev.jar'), file_paths)) + file_paths = list(filter(lambda fp: not fp.endswith('-sources.jar') and not fp.endswith('-dev.jar') and not fp.endswith('-shadow.jar'), file_paths)) if len(file_paths) == 0: file_name = '*not found*' sha256 = '*N/A*' diff --git a/build.gradle b/build.gradle index 36e8066..80517bd 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ tasks.register('buildAndGather') { copy { from(buildLibs(project)) { include '*.jar' - exclude '*-dev.jar', '*-sources.jar' + exclude '*-dev.jar', '*-sources.jar', '*-shadow.jar' } into buildLibs(rootProject) duplicatesStrategy DuplicatesStrategy.INCLUDE