Skip to content

Commit

Permalink
fix: publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Nov 14, 2024
1 parent 3ec7265 commit 07c018d
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ jobs:
#tag: ${{ github.ref }}
artifacts: neo/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-neoforge-${{ steps.get_version.outputs.result }}.jar,neo/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-neoforge-${{ steps.get_version.outputs.result }}-slim.jar,neo/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-neoforge-${{ steps.get_version.outputs.result }}-sources.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}-sources.jar
artifactContentType: application/java-archive
- name: Create Forge Release
id: create_forge_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
draft: false
replacesArtifacts: false
name: modonomicon-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}-${{ steps.get_release_type.outputs.result }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}
#tag: ${{ github.ref }}
artifacts: forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}.jar,forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-slim.jar,forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-sources.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}-sources.jar
artifactContentType: application/java-archive
# - name: Create Forge Release
# id: create_forge_release
# uses: ncipollo/release-action@v1
# with:
# allowUpdates: true
# draft: false
# replacesArtifacts: false
# name: modonomicon-${{ steps.get_mc_version.outputs.result }}-${{ steps.get_version.outputs.result }}-${{ steps.get_release_type.outputs.result }}
# body: ${{ steps.changelog.outputs.changes }}
# token: ${{ github.token }}
# #tag: ${{ github.ref }}
# artifacts: forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}.jar,forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-slim.jar,forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-sources.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}.jar,common/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-common-${{ steps.get_version.outputs.result }}-sources.jar
# artifactContentType: application/java-archive
- name: Create Fabric Release
id: create_fabric_release
uses: ncipollo/release-action@v1
Expand Down Expand Up @@ -130,32 +130,32 @@ jobs:
Find changes for all versions at https://github.com/klikli-dev/modonomicon/releases
dependencies: |
jei(optional)
- name: Upload Forge Version to Mod Platforms
uses: Kir-Antipov/[email protected]
if: ${{ steps.get_release_type.outputs.result != 'test' }}
with:
modrinth-id: 692GClaE
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
curseforge-id: 538392
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}

files: |
forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}.jar
forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-sources.jar
name: modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ 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 }}
loaders: |
forge
game-versions: |
${{ steps.get_mc_version.outputs.result }}
changelog: |-
${{ steps.changelog.outputs.changes }}
Find changes for all versions at https://github.com/klikli-dev/modonomicon/releases
dependencies: |
jei(optional)
# - name: Upload Forge Version to Mod Platforms
# uses: Kir-Antipov/[email protected]
# if: ${{ steps.get_release_type.outputs.result != 'test' }}
# with:
# modrinth-id: 692GClaE
# modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
# curseforge-id: 538392
# curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
#
# files: |
# forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}.jar
# forge/build/libs/modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ steps.get_version.outputs.result }}-sources.jar
#
# name: modonomicon-${{ steps.get_mc_version.outputs.result }}-forge-${{ 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 }}
# loaders: |
# forge
# game-versions: |
# ${{ steps.get_mc_version.outputs.result }}
# changelog: |-
# ${{ steps.changelog.outputs.changes }}
#
# Find changes for all versions at https://github.com/klikli-dev/modonomicon/releases
# dependencies: |
# jei(optional)
- name: Upload Fabric Version to Mod Platforms
uses: Kir-Antipov/[email protected]
if: ${{ steps.get_release_type.outputs.result != 'test' }}
Expand Down

0 comments on commit 07c018d

Please sign in to comment.