Skip to content

Commit

Permalink
Test CI MR Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Jun 22, 2024
1 parent 8e6843f commit 24a6a7c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
publish-tag:
type: string
required: true
description: Tag name to publish (vX.X.X)
description: Tag name to publish (X.X.X)

jobs:
build:
Expand Down Expand Up @@ -48,6 +48,32 @@ jobs:
prerelease: ${{ inputs.publish-tag == 'beta' }}
fail_on_unmatched_files: true
files: build/*.jar
- name: Upload to Modrinth
env:
MODRINTH_KEY: ${{ secrets.MODRINTH_PAT }}
if: ${{ env.MODRINTH_KEY != '' && inputs.upload-modrinth }}
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: qq2xNfbz
modrinth-token: ${{ secrets.MODRINTH_PAT }}
files: |
build/*.jar
name: '[${{ matrix.minecraft }}] ${{ inputs.publish-tag }}'
version: ${{ steps.prevtag.outputs.tag }}+${{ matrix.minecraft }}
version-type: ${{ inputs.release-type }}
changelog-file: CHANGELOG.md

loaders: |
fabric
forge
game-versions: |
${{ matrix.minecraft }}
dependencies: |
minecraft-transit-railway
retry-attempts: 3
retry-delay: 30000
fail-mode: fail
- name: Upload Artifacts to GitHub
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 24a6a7c

Please sign in to comment.