From 9835c444d6d7d9c8a2dd24370fb280597a3768f3 Mon Sep 17 00:00:00 2001 From: Yao Chung Hu <30311066+FlashyReese@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:56:01 -0600 Subject: [PATCH] change: Fix publishing - part 5 --- .github/workflows/publish.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 69ed3982..46812f89 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,6 +25,15 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + - name: Upload Build Artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: | + ${{ github.workspace }}/neoforge/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar + ${{ github.workspace }}/neoforge/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar + ${{ github.workspace }}/fabric/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar + ${{ github.workspace }}/fabric/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar publish: needs: build runs-on: ubuntu-22.04 @@ -36,6 +45,10 @@ jobs: - platform: neoforge name: NeoForge steps: + - name: Download Build Artifacts + uses: actions/download-artifact@v3 + with: + name: build-artifacts - name: Publish ${{ matrix.name }} to Modrinth, CurseForge & GitHub uses: Kir-Antipov/mc-publish@v3.3.0 with: @@ -60,4 +73,5 @@ jobs: iris(optional) files: | - ${{matrix.platform}}/build/libs/*.jar \ No newline at end of file + ${{ github.workspace }}/${{ matrix.platform }}/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar + ${{ github.workspace }}/${{ matrix.platform }}/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar \ No newline at end of file