Skip to content

Commit

Permalink
Update publish_project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iouter authored Nov 3, 2024
1 parent cbb9118 commit 4112051
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/publish_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
name: Publish Project

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # any SemVer tag, e.g. v1.2.3
workflow_dispatch

env:
# link to the changelog with a format code for the version
Expand Down Expand Up @@ -40,25 +38,4 @@ jobs:
files: "build/libs/*.jar"
generate_release_notes: true
fail_on_unmatched_files: true

- name: Publish to Maven
env:
MAVEN_USER: "${{ secrets.MAVEN_USER }}"
MAVEN_PASSWORD: "${{ secrets.MAVEN_PASSWORD }}"
run: ./gradlew publish

- name: Publish to Curseforge
env:
CURSEFORGE_API_KEY: "${{ secrets.CURSEFORGE_API_KEY }}"
CURSEFORGE_PROJECT_ID: "${{ secrets.CURSEFORGE_PROJECT_ID }}"
CHANGELOG_LOCATION: "${{ env.CHANGELOG_LOCATION }}"
RELEASE_TYPE: "${{ env.RELEASE_TYPE }}"
run: ./gradlew curseforge --warning-mode all --build-cache

- name: Publish to Modrinth
env:
MODRINTH_API_KEY: "${{ secrets.MODRINTH_API_KEY }}"
MODRINTH_PROJECT_ID: "${{ secrets.MODRINTH_PROJECT_ID }}"
CHANGELOG_LOCATION: "${{ env.CHANGELOG_LOCATION }}"
RELEASE_TYPE: "${{ env.RELEASE_TYPE }}"
run: ./gradlew modrinth --warning-mode all --build-cache
tag_name: names

0 comments on commit 4112051

Please sign in to comment.