Skip to content

Commit

Permalink
chore: switch to new publish plugin that supports modrinth
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 18, 2023
1 parent d650eb5 commit 8ce7181
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,34 @@ jobs:
branch: version/1.20.1
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md
- name: Upload to Curseforge
id: curseforge
uses: itsmeow/curseforge-upload@master
if: ${{ steps.get_release_type.outputs.result != 'test' }}
- name: Upload to Mod Platforms
uses: Kir-Antipov/[email protected]
with:
token: ${{ secrets.CURSEFORGE_API_KEY }}
project_id: 361026
game_endpoint: minecraft
file_path: ./build/libs/occultism-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}.jar
changelog_type: markdown
modrinth-id: sbJh4AZw
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
curseforge-id: 361026
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}

files: |
build/libs/occultism-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}.jar
name: occultism-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}.jar
version: ${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}
version-type: ${{ steps.get_release_type.outputs.result }}
game-versions: |
1.20
${{ steps.get_mc_version.outputs.result }}
changelog: |-
[Changelog]
${{ steps.changelog.outputs.changes }}
Find changes for all versions at https://github.com/klikli-dev/occultism/releases
game_versions: Forge,Minecraft 1.20:1.20,Minecraft 1.20:${{ steps.get_mc_version.outputs.result }}
display_name: occultism-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}.jar
release_type: ${{ steps.get_release_type.outputs.result }}
relations: modonomicon:requiredDependency,curios:requiredDependency,geckolib:requiredDependency,smartbrainlib:requiredDependency,theurgy:optionalDependency,jei:optionalDependency,almost-unified:optionalDependency,perviaminvenire:optionalDependency
dependencies: |
forge(required)
modonomicon(required)
curios(required)
geckolib(required)
smartbrainlib(required)
theurgy(optional)
jei(optional)
almost-unified(optional)
perviaminvenire(optional)

0 comments on commit 8ce7181

Please sign in to comment.