fix: add nodejs and npm installation to setup steps for all export jobs
Some checks failed
Build Release / Windows Export (pull_request) Failing after 1m46s
Build Release / Linux Export (pull_request) Failing after 1m46s
Build Release / Mac Export (pull_request) Failing after 1m46s
Build Release / Create Release (pull_request) Has been skipped

This commit is contained in:
2026-03-17 21:39:00 +01:00
parent 7d9d107d65
commit 72601467e4

View File

@@ -24,6 +24,8 @@ jobs:
lfs: true lfs: true
- name: Setup - name: Setup
run: | run: |
apt-get update
apt-get install -y nodejs npm
mkdir -v -p ~/.local/share/godot/export_templates/ mkdir -v -p ~/.local/share/godot/export_templates/
mkdir -v -p ~/.config/ mkdir -v -p ~/.config/
mv /root/.config/godot ~/.config/godot mv /root/.config/godot ~/.config/godot
@@ -52,6 +54,8 @@ jobs:
lfs: true lfs: true
- name: Setup - name: Setup
run: | run: |
apt-get update
apt-get install -y nodejs npm
mkdir -v -p ~/.local/share/godot/export_templates/ mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Linux Build - name: Linux Build
@@ -112,6 +116,8 @@ jobs:
lfs: true lfs: true
- name: Setup - name: Setup
run: | run: |
apt-get update
apt-get install -y nodejs npm
mkdir -v -p ~/.local/share/godot/export_templates/ mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Mac Build - name: Mac Build
@@ -126,11 +132,39 @@ jobs:
name: mac name: mac
path: build/mac path: build/mac
- name: Upload builds create-release:
uses: actions/upload-artifact@v5 name: Create Release
with: runs-on: ubuntu-latest
name: ${{ matrix.platform }} needs: [export-mac, export-linux, export-windows]
path: build/${{ matrix.platform }} steps:
- name: Extract version and body from CHANGELOG
id: changelog
run: |
# 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
echo "No released version found in CHANGELOG.md"
exit 1
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
- name: Create Release - name: Create Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1