Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,27 @@ jobs:
-Dorg.gradle.java.installations.auto-detect=false \
-Dorg.gradle.java.installations.auto-download=false
sha256sum build/libs/*.jar

- name: Prepare the audited release bundle
id: bundle
shell: bash
run: |
set -euo pipefail
version="$(sed -n 's/^mod_version=//p' gradle.properties)"
bundle="$RUNNER_TEMP/release-bundle"
mkdir -p "$bundle"
cp "build/libs/BaseGems-$version"{,-sources,-javadoc}.jar "$bundle/"
cp build/release/SHA256SUMS "$bundle/"
awk '/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ for Minecraft / { if (++sections > 1) exit }
sections == 1 { print }' CHANGELOG.txt > "$bundle/CHANGELOG.txt"
grep -Fxq "$version for Minecraft 1.11.2" "$bundle/CHANGELOG.txt"
(cd "$bundle" && sha256sum --check --strict SHA256SUMS)
echo "path=$bundle" >> "$GITHUB_OUTPUT"

- name: Upload audited release bundle
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: BaseGems-1.11.2-${{ github.sha }}
path: ${{ steps.bundle.outputs.path }}/*
if-no-files-found: error
retention-days: 90
Loading