Publish Release #18
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 | |
fabric-1-21-1: | |
description: '1.21.1 Fabric' | |
required: true | |
type: boolean | |
neo-1-21-1: | |
description: '1.21.1 NeoForge' | |
required: true | |
type: boolean | |
fabric-1-21-3: | |
description: '1.21.3 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.1 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/neo/1.21.1 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.1.mrpack | |
- name: Zip fabric/1.21.1 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/fabric/1.21.1 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.1.mrpack | |
- name: Zip fabric/1.21.3 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/fabric/1.21.3 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.3.mrpack | |
- name: Upload to Github | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Modrinth Releases | |
path: ${{ github.workspace }}/*.mrpack | |
- if: ${{ inputs.neo-1-21-1 }} | |
name: Publish neo/1.21.1 | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
modrinth-id: nQYjpo27 | |
modrinth-featured: true | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/*neo.1.21.1.mrpack | |
name: OptimumFuse ${{ inputs.version }}+neo.1.21.1 | |
version: ${{ inputs.version }}+neo.1.21.1 | |
version-type: release | |
changelog-file: modrinth/neo/1.21.1/CHANGELOG.md | |
loaders: | | |
neoforge | |
game-versions: | | |
1.21.1 | |
game-version-filter: releases | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail | |
- if: ${{ inputs.fabric-1-21-1 }} | |
name: Publish fabric/1.21.1 | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
modrinth-id: nQYjpo27 | |
modrinth-featured: true | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/*fabric.1.21.1.mrpack | |
name: OptimumFuse ${{ inputs.version }}+fabric.1.21.1 | |
version: ${{ inputs.version }}+fabric.1.21.1 | |
version-type: release | |
changelog-file: modrinth/fabric/1.21.1/CHANGELOG.md | |
loaders: | | |
fabric | |
game-versions: | | |
1.21.1 | |
game-version-filter: releases | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail | |
- if: ${{ inputs.fabric-1-21-3 }} | |
name: Publish fabric/1.21.3 | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
modrinth-id: nQYjpo27 | |
modrinth-featured: true | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/*fabric.1.21.3.mrpack | |
name: OptimumFuse ${{ inputs.version }}+fabric.1.21.3 | |
version: ${{ inputs.version }}+fabric.1.21.3 | |
version-type: release | |
changelog-file: modrinth/fabric/1.21.3/CHANGELOG.md | |
loaders: | | |
fabric | |
game-versions: | | |
1.21.3 | |
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.1 | |
# uses: vimtor/action-zip@v1.2 | |
# with: | |
# files: curseforge/fabric/1.21.1 | |
# dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.1.zip | |
# - name: Upload to Github | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: Curseforge Releases | |
# path: ${{ github.workspace }}/*.zip | |
# - if: ${{ inputs.fabric-1-21-1 }} | |
# name: Publish fabric/1.21.1 | |
# uses: Kir-Antipov/mc-publish@v3.3 | |
# with: | |
# curseforge-id: 887237 | |
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
# files: | | |
# ${{ github.workspace }}/*fabric.1.21.1.zip | |
# name: OptimumFuse ${{ inputs.version }}+fabric.1.21.1 | |
# version: ${{ inputs.version }}+fabric.1.21.1 | |
# version-type: release | |
# changelog-file: modrinth/fabric/1.21.1/CHANGELOG.md | |
# loaders: | | |
# fabric | |
# game-versions: | | |
# 1.21.1 | |
# 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-1 }} | |
name: Mrpack neo/1.21.1 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/neo/1.21.1 | |
dest: OptimumFuse ${{ inputs.version }}+neo.1.21.1.mrpack | |
- if: ${{ inputs.fabric-1-21-1 }} | |
name: Mrpack fabric/1.21.1 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/fabric/1.21.1 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.1.mrpack | |
- if: ${{ inputs.fabric-1-21-3 }} | |
name: Mrpack fabric/1.21.3 | |
uses: vimtor/action-zip@v1.2 | |
with: | |
files: modrinth/fabric/1.21.3 | |
dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.3.mrpack | |
# - if: ${{ inputs.fabric-1-21-1 }} | |
# name: Zip fabric/1.21.1 | |
# uses: vimtor/action-zip@v1.2 | |
# with: | |
# files: curseforge/fabric/1.21.1 | |
# dest: OptimumFuse ${{ inputs.version }}+fabric.1.21.1.zip | |
- name: Publish Packs | |
uses: Kir-Antipov/mc-publish@v3.3 | |
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 |