Skip to content

Publish Release

Publish Release #30

name: Publish Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
type: string
fabric-1-21-4:
description: '1.21.4 Fabric'
required: true
type: boolean
jobs:
publish-to-modrinth:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Zip fabric/1.21.4
uses: vimtor/[email protected]
with:
files: modrinth/fabric/1.21.4
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.4.mrpack
- name: Upload to Github
uses: actions/upload-artifact@v4
with:
name: Modrinth Releases
path: ${{ github.workspace }}/*.mrpack
- if: ${{ inputs.fabric-1-21-4 }}
name: Publish fabric/1.21.4
uses: Kir-Antipov/[email protected]
with:
modrinth-id: nQYjpo27
modrinth-featured: true
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: |
${{ github.workspace }}/*fabric.1.21.4.mrpack
name: OptimumFuse ${{ inputs.version }}+fabric.1.21.4
version: ${{ inputs.version }}+fabric.1.21.4
version-type: release
changelog-file: modrinth/fabric/1.21.4/CHANGELOG.md
loaders: |
fabric
game-versions: |
1.21.4
game-version-filter: releases
retry-attempts: 2
retry-delay: 10000
fail-mode: fail
publish-to-curseforge:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Zip fabric/1.21.4
uses: vimtor/[email protected]
with:
files: curseforge/fabric/1.21.4
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.4.zip
- name: Upload to Github
uses: actions/upload-artifact@v4
with:
name: Curseforge Releases
path: ${{ github.workspace }}/*.zip
- if: ${{ inputs.fabric-1-21-4 }}
name: Publish fabric/1.21.4
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 887237
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files: |
${{ github.workspace }}/*fabric.1.21.4.zip
name: OptimumFuse ${{ inputs.version }}+fabric.1.21.4
version: ${{ inputs.version }}+fabric.1.21.4
version-type: release
changelog-file: curseforge/fabric/1.21.4/CHANGELOG.md
loaders: |
fabric
game-versions: |
1.21.4
game-version-filter: releases
retry-attempts: 2
retry-delay: 10000
fail-mode: fail
publish-to-github:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- if: ${{ inputs.fabric-1-21-4 }}
name: Mrpack fabric/1.21.4
uses: vimtor/[email protected]
with:
files: modrinth/fabric/1.21.4
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.4.mrpack
- if: ${{ inputs.fabric-1-21-4 }}
name: Zip fabric/1.21.4
uses: vimtor/[email protected]
with:
files: curseforge/fabric/1.21.4
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.4.zip
- name: Publish Packs
uses: Kir-Antipov/[email protected]
with:
github-tag: ${{ inputs.version }}
github-commitish: main
github-token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ github.workspace }}/*.mrpack
${{ github.workspace }}/*.zip
name: OptimumFuse ${{ inputs.version }}
version: ${{ inputs.version }}
version-type: release
changelog: Check out the changelog for the respective version [**here**](https://modrinth.com/modpack/optimum-fuse/changelog).
retry-attempts: 2
retry-delay: 10000
fail-mode: fail