mirror of
https://github.com/darksaid98/optim.git
synced 2026-12-02 14:38:48 +00:00
ci: use artifacts to pass release files
This commit is contained in:
2 files changed
+16
-7
No files matched your search
@@ -49,13 +49,12 @@ runs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Download release files
|
# Download release files
|
||||||
- name: Download Release
|
- name: Download Release Artifacts
|
||||||
uses: robinraju/[email protected]
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
fileName: "*"
|
name: Modpack-Release
|
||||||
tag: ${{ inputs.version }}
|
run-id: ${{ github.event.workflow_run.id }}
|
||||||
tarBall: false
|
merge-multiple: true
|
||||||
zipBall: false
|
|
||||||
|
|
||||||
# Create a markdown file of the release description
|
# Create a markdown file of the release description
|
||||||
- name: Pipe Release Description to File
|
- name: Pipe Release Description to File
|
||||||
|
|||||||
@@ -75,6 +75,16 @@ jobs:
|
|||||||
packwiz modrinth export --output Optim-${{ github.ref_name }}.mrpack
|
packwiz modrinth export --output Optim-${{ github.ref_name }}.mrpack
|
||||||
working-directory: ./main
|
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
|
# Fetch modpack metadata from the modpack config
|
||||||
- name: Read Modpack Metadata
|
- name: Read Modpack Metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
@@ -125,7 +135,7 @@ jobs:
|
|||||||
generate_release_notes: false
|
generate_release_notes: false
|
||||||
body: ${{ steps.changelog.outputs.changelog }}
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
|
|
||||||
- name: Create Release Client (Modrinth)
|
- name: Create Release Client (Modrinth & CurseForge)
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
with:
|
with:
|
||||||
working-directory: ./main
|
working-directory: ./main
|
||||||
|
|||||||
Reference in new issue
Block a user