Skip to content

Commit

Permalink
using gradle to move the artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed Oct 10, 2024
1 parent 58f9540 commit e82f874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,9 @@ jobs:
- name: Build
run: ./gradlew chiseledBuildAndCollect

- name: Move jars
run: |
VERSIONS=("1.21.1")
for version in "${VERSIONS[@]}"; do
mkdir ./build/"$version"/
mv ./versions/*/build/libs/*fabric.jar ./build/"$version"/
mv ./versions/*/build/libs/*neoforge.jar ./build/"$version"/
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
./build
./build/*.jar
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ tasks.processResources {
tasks.register('buildAndCollect', Copy) {
group = 'build'
from(tasks.remapJar.archiveFile)
into(rootProject.layout.buildDirectory.file("libs/"))
into(rootProject.layout.buildDirectory.file("${minecraft_version}/"))
dependsOn('build')
}

Expand Down

0 comments on commit e82f874

Please sign in to comment.