mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2025-12-19 14:59:14 +00:00
Update release metadata gen
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -48,12 +48,14 @@ jobs:
|
|||||||
cat metadata.json
|
cat metadata.json
|
||||||
echo
|
echo
|
||||||
version=$(cat manifest.json | jq -r '.header.version | join(".")')
|
version=$(cat manifest.json | jq -r '.header.version | join(".")')
|
||||||
|
echo "Version: ${version}"
|
||||||
cat metadata.json | jq --arg project "${PROJECT}" --arg version "${version}" '
|
cat metadata.json | jq --arg project "${PROJECT}" --arg version "${version}" '
|
||||||
.
|
.
|
||||||
| .changes |= map({"commit", "summary", "message"})
|
| .changes |= map({"commit", "summary", "message"})
|
||||||
| .downloads |= map_values({"name", "sha256"})
|
| .downloads |= map_values({"name", "sha256"})
|
||||||
| {$project, "repo", $version, "number": .build, "changes", "downloads"}
|
| {$project, "repo", $version, "number": .build, "changes", "downloads"}
|
||||||
' | tee metadata.json
|
' | tee metadata.json
|
||||||
|
echo ""
|
||||||
|
|
||||||
- name: Publish to Downloads API
|
- name: Publish to Downloads API
|
||||||
if: ${{ success() && github.repository == 'GeyserMC/GeyserOptionalPack' && github.ref_name == 'master' }}
|
if: ${{ success() && github.repository == 'GeyserMC/GeyserOptionalPack' && github.ref_name == 'master' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user