Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yefancy committed Nov 26, 2023
1 parent d11f50f commit 1c030b3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
description: "publish github release"
type: boolean
default: true
maven:
description: 'publish to the maven'
type: boolean
default: true
modrinth:
description: "publish modrinth"
type: boolean
Expand Down Expand Up @@ -47,6 +51,9 @@ jobs:
publish:
needs: call-build-workflow
runs-on: ubuntu-latest
env:
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
permissions:
contents: write
strategy:
Expand Down Expand Up @@ -98,6 +105,13 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-generate-changelog: true

- name: Publish Maven
uses: gradle/gradle-build-action@v2.4.2
continue-on-error: true
if: (matrix.website == 'github_release' && inputs.github-release) && ((matrix.loader == 'Forge' && inputs.forge) || (matrix.loader == 'Fabric' && inputs.fabric))
with:
arguments: publish

- name: Publish Modrinth Release
uses: Kir-Antipov/mc-publish@v3.3
continue-on-error: true
Expand Down

0 comments on commit 1c030b3

Please sign in to comment.