Skip to content

Commit

Permalink
update release.yml for MPP
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Jan 17, 2024
1 parent ca52dec commit f9f73cc
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,36 +41,22 @@ jobs:
- name: Set up mod metadata
id: mod_meta
run: |
echo mod_version=$(grep ^mod_version ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT
echo mc_version=$(grep ^mc_version ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT
echo mod_version=$(grep ^mod_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT
echo mc_version=$(grep ^mc_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT
- name: Publish to Modmaven
uses: gradle/gradle-build-action@v2
env:
MODMAVEN_USER: ${{ secrets.MODMAVEN_USER }}
MODMAVEN_PASSWORD: ${{ secrets.MODMAVEN_PASSWORD }}
with:
arguments: publishMavenPublicationToModmavenRepository --no-daemon
- name: Publish to Modrinth
- name: Publish to Curseforge/Modrinth
uses: gradle/gradle-build-action@v2
env:
CHANGELOG: ${{ github.event.release.body }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
BUILD_NUMBER: ${{ github.run_number }}
with:
arguments: modrinth --no-daemon
- name: Publish to Curseforge
uses: gradle/gradle-build-action@v2
env:
CHANGELOG: ${{ github.event.release.body }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
BUILD_NUMBER: ${{ github.run_number }}
with:
arguments: curseforge --no-daemon
- name: Discord notification
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if:
env.DISCORD_WEBHOOK != null
with:
args: 'Release ${{ github.event.release.tag_name }} done for project {{ EVENT_PAYLOAD.repository.full_name }} (Minecraft ${{ steps.mod_meta.outputs.mc_version}}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.'
arguments: publishMods --no-daemon

0 comments on commit f9f73cc

Please sign in to comment.