Skip to content

Commit

Permalink
use platform specified changelog for mc-publish to protect github rel…
Browse files Browse the repository at this point in the history
…ease
  • Loading branch information
Fallen-Breath committed Jun 29, 2023
1 parent 1e1c602 commit 8e5e83f
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,26 @@ jobs:
echo "hash=$FILE_HASH" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Prepare changelog
uses: actions/github-script@v6
id: changelog
with:
script: return process.env.CHANGELOG
result-encoding: string
env:
CHANGELOG: |-
${{ format('{0}{1}', github.event.release.body, steps.get_release.outputs.body) }}
-------
Build Information
- File name: `${{ steps.file_info.outputs.name }}`
- SHA-256: `${{ steps.file_info.outputs.hash }}`
- Built from: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Publish Minecraft Mods
uses: Fallen-Breath/[email protected].0-fallen.1
uses: Kir-Antipov/[email protected]
with:
# modrinth-id: fo0Bar
# modrinth-token: ${{ secrets.MODRINTH_API_TOKEN }}
Expand All @@ -146,24 +164,14 @@ jobs:

github-tag: ${{ steps.release_info.outputs.tag_name }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-update-release-body: false

files: ${{ steps.file_info.outputs.path }}

name: ${{ format('{0} v{1} for mc{2}', steps.properties_g.outputs.mod_name, steps.properties_g.outputs.mod_version, steps.properties_v.outputs.minecraft_version) }}
version: ${{ format('mc{0}-v{1}', steps.properties_v.outputs.minecraft_version, steps.properties_g.outputs.mod_version) }}
version-type: release
changelog: |-
${{ format('{0}{1}', github.event.release.body, steps.get_release.outputs.body) }}
-------
Build Information
- File name: `${{ steps.file_info.outputs.name }}`
- SHA-256: `${{ steps.file_info.outputs.hash }}`
- Built from: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
modrinth-changelog: ${{ steps.changelog.outputs.result }}
curseforge-changelog: ${{ steps.changelog.outputs.result }}
loaders: fabric
game-versions: ${{ steps.game_versions.outputs.value }}
game-version-filter: any
Expand Down

0 comments on commit 8e5e83f

Please sign in to comment.