-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use platform specified changelog for mc-publish to protect github rel…
…ease
- Loading branch information
1 parent
1e1c602
commit 8e5e83f
Showing
1 changed file
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|