Replies: 1 comment 2 replies
-
I apologize for the late response. I am a bit overbooked at the moment.
As a GitHub workflow, it would look something like this: name: publish-modpack
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: >=1.19
# https://packwiz.infra.link/installation/
- name: Install packwiz
run: go install github.com/packwiz/packwiz@latest
# https://packwiz.infra.link/tutorials/hosting/curseforge/
- name: Export modpack for CurseForge
run: packwiz curseforge export
# I suppose. The docs are missing
- name: Export modpack for Modrinth
run: packwiz modrinth export
- name: Upload the modpack to GitHub, Modrinth, and CurseForge
uses: Kir-Antipov/mc-publish@v3.3
with:
# Put your project's Modrinth ID here
modrinth-id: AAAAAAAA
modrinth-files: *.mrpack
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
# Put your project's CurseForge ID here
curseforge-id: 0
curseforge-files: *.zip
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-files: *.@(zip|mrpack)
github-token: ${{ secrets.GITHUB_TOKEN }}
# Update the list of supported loaders
loaders: |
fabric
forge
quilt
# Update the list of supported Minecraft versions
game-versions: >=1.20
game-version-filter: releases This workflow assumes that the contents of your modpack are stored in the root of your repository. Ensure you adjust this if the assumption does not hold. Also, |
Beta Was this translation helpful? Give feedback.
-
I have a modpack built using packwiz, and I'd like to be able to automatically do releases etc using it - will this action work for that?
Beta Was this translation helpful? Give feedback.
All reactions