From f02b34aa79c048123514f80ab38e1a7c3958e806 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 1 Dec 2025 13:02:53 +0100 Subject: ci: exclude api and sources .jars more often --- .github/workflows/build.yml | 5 ++++- .github/workflows/publish-github-to-modrinth.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e73c6f4..1d50069 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,13 +27,16 @@ jobs: ./gradlew assemble --scan - name: Move build artifact around and print check sum run: | - rm -f build/libs/*sources*.jar + rm -f build/libs/*sources*.jar build/libs/*-api.jar sha256sum build/libs/*.jar - name: Upload build artifact uses: actions/upload-artifact@v4 with: name: built-mod-jar path: build/libs/Firmament-*.jar + exclude: | + build/libs/*-sources.jar + build/libs/*-api.jar test: name: Test diff --git a/.github/workflows/publish-github-to-modrinth.yml b/.github/workflows/publish-github-to-modrinth.yml index 18ecf4a..7b966ab 100644 --- a/.github/workflows/publish-github-to-modrinth.yml +++ b/.github/workflows/publish-github-to-modrinth.yml @@ -19,6 +19,7 @@ jobs: steps: - run: | gh release download "$TAG" -p '*.jar' --repo "$REPO" + rm -f *-sources.jar *-api.jar *-api-sources.jar env: TAG: ${{ github.event.release.tag_name }} REPO: ${{ github.repository }} -- cgit