Skip to content

Commit

Permalink
change: Fix publishing - part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Aug 23, 2024
1 parent e4f2300 commit 9835c44
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
Expand All @@ -60,4 +73,5 @@ jobs:
iris(optional)
files: |
${{matrix.platform}}/build/libs/*.jar
${{ github.workspace }}/${{ matrix.platform }}/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar
${{ github.workspace }}/${{ matrix.platform }}/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar

0 comments on commit 9835c44

Please sign in to comment.