8 Commits

Author SHA1 Message Date
6370bb5b09 fix: enhance CHANGELOG extraction to include body and trim empty lines
Some checks failed
Build Release / build (Linux/X11) (pull_request) Successful in 2m40s
Build Release / build (Windows) (pull_request) Failing after 2m41s
Build Release / build (Web) (pull_request) Failing after 2m42s
2026-03-16 22:25:23 +01:00
751a3b1a17 fix: correct formatting for release action parameters in workflow
Some checks failed
Build Release / build (Linux/X11) (pull_request) Failing after 2m27s
Build Release / build (Web) (pull_request) Failing after 2m36s
Build Release / build (Windows) (pull_request) Failing after 2m17s
2026-03-16 22:19:57 +01:00
3aa520203e fix: update release action to include formatted release name and description
Some checks failed
Build Release / build (Web) (pull_request) Failing after 2m30s
Build Release / build (Windows) (pull_request) Failing after 2m42s
Build Release / build (Linux/X11) (pull_request) Failing after 2m51s
2026-03-16 22:15:03 +01:00
4a27ae75d3 test
Some checks failed
Build Release / build (Web) (pull_request) Failing after 2m36s
Build Release / build (Linux/X11) (pull_request) Failing after 2m41s
Build Release / build (Windows) (pull_request) Failing after 2m44s
2026-03-16 22:10:04 +01:00
756281ab0b fix: update server_url reference to use vars in release workflow
Some checks failed
Build Release / build (Linux/X11) (pull_request) Failing after 2m36s
Build Release / build (Web) (pull_request) Failing after 2m41s
Build Release / build (Windows) (pull_request) Failing after 2m42s
2026-03-16 22:07:52 +01:00
651abb6fef fix: correct artifact upload path in release workflow
Some checks failed
Build Release / build (Web) (pull_request) Failing after 2m29s
Build Release / build (Linux/X11) (pull_request) Failing after 2m34s
Build Release / build (Windows) (pull_request) Failing after 2m19s
2026-03-16 22:02:23 +01:00
6b91985c84 fix: update build action to normalize build path and use correct output for uploads
Some checks failed
Build Release / build (Web) (pull_request) Failing after 2m31s
Build Release / build (Linux/X11) (pull_request) Failing after 2m35s
Build Release / build (Windows) (pull_request) Failing after 3m6s
2026-03-16 20:44:29 +01:00
b58012bb90 fix: add EXPORT_DIR parameter to build action configuration 2026-03-16 20:40:49 +01:00

View File

@@ -17,18 +17,35 @@ jobs:
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Extract version from CHANGELOG - name: Extract version and body from CHANGELOG
id: changelog id: changelog
run: | run: |
LATEST=$(grep -E '^## \[(.*)\]' CHANGELOG.md | grep -v '\[Unreleased\]' | head -n1 | sed -E 's/^## \[([^\]]+)\].*/\1/') # Extract the latest released version (skip Unreleased)
LATEST=$(grep -E '^## \[[0-9]+\.[0-9]+\.[0-9]+\]' CHANGELOG.md | head -n1 | sed -E 's/^## \[([0-9]+\.[0-9]+\.[0-9]+)\].*/\1/')
if [ -z "$LATEST" ]; then if [ -z "$LATEST" ]; then
echo "No released version found in CHANGELOG.md" echo "No released version found in CHANGELOG.md"
exit 1 exit 1
else
echo "Released version found: $LATEST"
echo "version=$LATEST" >> $GITHUB_OUTPUT
fi fi
echo "Released version found: $LATEST"
echo "version=$LATEST" >> $GITHUB_OUTPUT
# Extract the body: lines until the next ## header
BODY=$(awk -v ver="$LATEST" '
$0 ~ "^## \\[" ver "\\]" {found=1; next}
found && $0 ~ "^## \\[" {exit}
found {print}
' CHANGELOG.md)
# Trim leading/trailing empty lines
BODY=$(echo "$BODY" | sed '/^\s*$/d')
# Output body safely for GitHub Actions
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
# Create Release also creates an Tag # Create Release also creates an Tag
# - name: Create git tag # - name: Create git tag
# uses: alazhar/gitea-action-autotag@v1 # uses: alazhar/gitea-action-autotag@v1
@@ -44,18 +61,22 @@ jobs:
BLENDER_VERSION: "5.0.0" BLENDER_VERSION: "5.0.0"
VERBOSE_IMPORT: "false" VERBOSE_IMPORT: "false"
- name: Normalize build path
id: normalize
run: echo "path=$(realpath ${{ steps.build.outputs.build }})" >> $GITHUB_OUTPUT
- name: Upload builds - name: Upload builds
uses: actions/upload-artifact@v5 uses: actions/upload-artifact@v5
with: with:
name: godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }} name: godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }}
path: ${{ steps.build.outputs.build }} path: ${{ steps.normalize.outputs.path }}
- name: Create Release - name: Create Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
server_url: ${{ SERVER_URL }} server_url: ${{ vars.SERVER_URL }}
tag_name: ${{ steps.changelog.outputs.version }} tag_name: "${{ steps.changelog.outputs.version }}"
name: "Release ${{ steps.changelog.outputs.version }}" name: Release ${{ steps.changelog.outputs.version }}
body: ${{ steps.changelog.outputs.description }} body: ${{ steps.changelog.outputs.description }}
files: | files: |
godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }} godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }}