Skip to content

Commit 69edd7d

Browse files
authored
Merge pull request #21 from SkyBlade1978/feature/basegems111-release-ci
Keep the audited Base Gems 1.11.2 release bundle
2 parents c6f5047 + ec10a74 commit 69edd7d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,27 @@ jobs:
5959
-Dorg.gradle.java.installations.auto-detect=false \
6060
-Dorg.gradle.java.installations.auto-download=false
6161
sha256sum build/libs/*.jar
62+
63+
- name: Prepare the audited release bundle
64+
id: bundle
65+
shell: bash
66+
run: |
67+
set -euo pipefail
68+
version="$(sed -n 's/^mod_version=//p' gradle.properties)"
69+
bundle="$RUNNER_TEMP/release-bundle"
70+
mkdir -p "$bundle"
71+
cp "build/libs/BaseGems-$version"{,-sources,-javadoc}.jar "$bundle/"
72+
cp build/release/SHA256SUMS "$bundle/"
73+
awk '/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ for Minecraft / { if (++sections > 1) exit }
74+
sections == 1 { print }' CHANGELOG.txt > "$bundle/CHANGELOG.txt"
75+
grep -Fxq "$version for Minecraft 1.11.2" "$bundle/CHANGELOG.txt"
76+
(cd "$bundle" && sha256sum --check --strict SHA256SUMS)
77+
echo "path=$bundle" >> "$GITHUB_OUTPUT"
78+
79+
- name: Upload audited release bundle
80+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
81+
with:
82+
name: BaseGems-1.11.2-${{ github.sha }}
83+
path: ${{ steps.bundle.outputs.path }}/*
84+
if-no-files-found: error
85+
retention-days: 90

0 commit comments

Comments
 (0)