Skip to content

Commit

Permalink
Add curseforge publishing
Browse files Browse the repository at this point in the history
SecretOnline committed Jun 22, 2024
1 parent 5872513 commit 9158e5a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ env:
MOD_NAME: Accessible Step
MOD_ID: accessible-step
MODRINTH_PROJECT_ID: z6d6n7ve
CURSEFORGE_PROJECT_ID: 1044724

jobs:
create-release:
@@ -89,6 +90,18 @@ jobs:
with:
subject-path: "build/libs/*.jar"

- name: Create GitHub release
if: inputs.is-release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.deploy-info.outputs.version-slug }}
name: ${{ steps.deploy-info.outputs.release-name }}
body: ${{ steps.changelog.outputs.release-notes }}
files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Modrinth Release
if: inputs.is-release
id: modrinth-release
@@ -100,6 +113,8 @@ jobs:
loaders: fabric
modrinth-id: ${{ env.MODRINTH_PROJECT_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: ${{ env.MODRINTH_PROJECT_ID }}
curseforge-token: ${{ secrets.MODRINTH_TOKEN }}

- name: Update Modrinth decription
if: inputs.is-release
@@ -109,18 +124,6 @@ jobs:
slug: ${{ env.MODRINTH_PROJECT_ID }}
readme: README.md

- name: Create GitHub release
if: inputs.is-release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.deploy-info.outputs.version-slug }}
name: ${{ steps.deploy-info.outputs.release-name }}
body: ${{ steps.changelog.outputs.release-notes }}
files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
token: ${{ secrets.GITHUB_TOKEN }}

- name: Post release to Discord
if: inputs.is-release
uses: tsickert/[email protected]

0 comments on commit 9158e5a

Please sign in to comment.