Publish Release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
required: true | |
type: string | |
neo-1-21: | |
description: '1.21 NeoForge' | |
required: true | |
type: boolean | |
fabric-1-21: | |
description: '1.21 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 neo/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: modrinth/neo/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.mrpack | |
- name: Zip fabric/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: modrinth/fabric/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.mrpack | |
- name: Upload to Github | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Modrinth Releases | |
path: ${{ github.workspace }}/*.mrpack | |
- if: ${{ inputs.neo-1-21 }} | |
name: Publish neo/1.21 | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-id: nQYjpo27 | |
modrinth-featured: true | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/*neo.1.21.mrpack | |
name: OptimumFuse ${{ inputs.version }}+neo.1.21 | |
version: ${{ inputs.version }}+neo.1.21 | |
version-type: release | |
changelog-file: modrinth/neo/1.21/CHANGELOG.md | |
loaders: | | |
neoforge | |
game-versions: | | |
1.21 | |
game-version-filter: releases | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail | |
- if: ${{ inputs.fabric-1-21 }} | |
name: Publish fabric/1.21 | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-id: nQYjpo27 | |
modrinth-featured: true | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/*fabric.1.21.mrpack | |
name: OptimumFuse ${{ inputs.version }}+fabric.1.21 | |
version: ${{ inputs.version }}+fabric.1.21 | |
version-type: release | |
changelog-file: modrinth/fabric/1.21/CHANGELOG.md | |
loaders: | | |
fabric | |
game-versions: | | |
1.21 | |
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 neo/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: curseforge/neo/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.zip | |
- name: Zip fabric/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: curseforge/fabric/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.zip | |
- name: Upload to Github | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Curseforge Releases | |
path: ${{ github.workspace }}/*.zip | |
- if: ${{ inputs.neo-1-21 }} | |
name: Publish neo/1.21 | |
uses: Kir-Antipov/[email protected] | |
with: | |
curseforge-id: 887237 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
files: | | |
${{ github.workspace }}/*neo.1.21.zip | |
name: OptimumFuse ${{ inputs.version }}+neo.1.21 | |
version: ${{ inputs.version }}+neo.1.21 | |
version-type: release | |
changelog-file: modrinth/neo/1.21/CHANGELOG.md | |
loaders: | | |
neoforge | |
game-versions: | | |
1.21 | |
game-version-filter: releases | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail | |
- if: ${{ inputs.fabric-1-21 }} | |
name: Publish fabric/1.21 | |
uses: Kir-Antipov/[email protected] | |
with: | |
curseforge-id: 887237 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
files: | | |
${{ github.workspace }}/*fabric.1.21.zip | |
name: OptimumFuse ${{ inputs.version }}+fabric.1.21 | |
version: ${{ inputs.version }}+fabric.1.21 | |
version-type: release | |
changelog-file: modrinth/fabric/1.21/CHANGELOG.md | |
loaders: | | |
fabric | |
game-versions: | | |
1.21 | |
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.neo-1-21 }} | |
name: Mrpack neo/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: modrinth/neo/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.mrpack | |
- if: ${{ inputs.fabric-1-21 }} | |
name: Mrpack fabric/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: modrinth/fabric/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.mrpack | |
- if: ${{ inputs.neo-1-21 }} | |
name: Zip neo/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: curseforge/neo/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.zip | |
- if: ${{ inputs.fabric-1-21 }} | |
name: Zip fabric/1.21 | |
uses: vimtor/[email protected] | |
with: | |
files: curseforge/fabric/1.21 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.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 |