Compare commits
12 Commits
7522d45bbd
...
0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 6370bb5b09 | |||
| 751a3b1a17 | |||
| 3aa520203e | |||
| 4a27ae75d3 | |||
| 756281ab0b | |||
| 651abb6fef | |||
| 6b91985c84 | |||
| b58012bb90 | |||
| b983f41f75 | |||
| d788285d18 | |||
| 4a6703f79a | |||
| 560b04bba2 |
@@ -17,17 +17,34 @@ 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
|
fi
|
||||||
|
|
||||||
echo "Released version found: $LATEST"
|
echo "Released version found: $LATEST"
|
||||||
echo "version=$LATEST" >> $GITHUB_OUTPUT
|
echo "version=$LATEST" >> $GITHUB_OUTPUT
|
||||||
fi
|
|
||||||
|
# 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
|
||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ dedicated_server=false
|
|||||||
custom_features=""
|
custom_features=""
|
||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter="*.blend"
|
||||||
export_path=""
|
export_path=""
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
patch_delta_encoding=false
|
patch_delta_encoding=false
|
||||||
@@ -50,15 +50,15 @@ threads/godot_pool_size=4
|
|||||||
|
|
||||||
[preset.1]
|
[preset.1]
|
||||||
|
|
||||||
name="Linux/X11\""
|
name="Linux/X11"
|
||||||
platform="Linux"
|
platform="Linux"
|
||||||
runnable=true
|
runnable=true
|
||||||
dedicated_server=false
|
dedicated_server=false
|
||||||
custom_features=""
|
custom_features=""
|
||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter="*.blend"
|
||||||
export_path=""
|
export_path="<null>"
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
patch_delta_encoding=false
|
patch_delta_encoding=false
|
||||||
patch_delta_compression_level_zstd=19
|
patch_delta_compression_level_zstd=19
|
||||||
@@ -104,7 +104,7 @@ dedicated_server=false
|
|||||||
custom_features=""
|
custom_features=""
|
||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter="*.blend"
|
||||||
export_path=""
|
export_path=""
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
patch_delta_encoding=false
|
patch_delta_encoding=false
|
||||||
|
|||||||
Reference in New Issue
Block a user