diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index bfc569b..8a490b7 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -49,13 +49,12 @@ runs: uses: actions/checkout@v4 # Download release files - - name: Download Release - uses: robinraju/release-downloader@v1.11 + - name: Download Release Artifacts + uses: actions/download-artifact@v4 with: - fileName: "*" - tag: ${{ inputs.version }} - tarBall: false - zipBall: false + name: Modpack-Release + run-id: ${{ github.event.workflow_run.id }} + merge-multiple: true # Create a markdown file of the release description - name: Pipe Release Description to File diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1ca2d5..7bddfd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,6 +75,16 @@ jobs: packwiz modrinth export --output Optim-${{ github.ref_name }}.mrpack working-directory: ./main + # Upload artifacts of release files + - name: Upload Release Artifacts + uses: actions/upload-artifact@v4 + with: + name: Modpack-Release + path: | + ./main/Optim-${{ github.ref_name }}.zip + ./main/Optim-${{ github.ref_name }}.mrpack + retention-days: 1 + # Fetch modpack metadata from the modpack config - name: Read Modpack Metadata id: metadata @@ -125,7 +135,7 @@ jobs: generate_release_notes: false body: ${{ steps.changelog.outputs.changelog }} - - name: Create Release Client (Modrinth) + - name: Create Release Client (Modrinth & CurseForge) uses: ./.github/actions/release with: working-directory: ./main