Merge branch 'main' of https://git.main.qwsdcvghyu.com/riley/wrplat-godot
Nightly Release / Build Nightly (linux) (push) Failing after 4s
Nightly Release / Build Nightly (mac) (push) Failing after 4s
Nightly Release / Build Nightly (windows) (push) Failing after 3s
Nightly Release / Publish Nightly Release (push) Skipped

This commit is contained in:
qwsdcvghyu89
2026-06-06 02:52:36 +10:00
5 changed files with 157 additions and 0 deletions
+81
View File
@@ -0,0 +1,81 @@
name: Nightly Release
on:
push:
branches:
- main
workflow_dispatch:
# The default token is read-only; release/tag operations need write.
permissions:
contents: write
jobs:
# ---- Build each platform in parallel, upload outputs as artifacts ----
build-nightly:
name: Build Nightly (${{ matrix.platform }})
runs-on: Debian-x86
strategy:
matrix:
platform: [linux, windows, mac]
steps:
- uses: actions/checkout@v4
- name: Build
id: build
uses: felix-schindler/build-godot-action@v2.0.0
with:
name: wrplat
preset: ${{ matrix.platform }}
debugMode: "true"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
# Unique name per platform so the matrix jobs don't collide
name: build-${{ matrix.platform }}
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
if-no-files-found: error
# ---- Runs once, only after all three builds succeed ----
release-nightly:
name: Publish Nightly Release
needs: build-nightly
runs-on: Debian-x86
steps:
- uses: actions/checkout@v4
- name: Download all build artifacts
uses: actions/download-artifact@v4
with:
# No 'name' → grabs every artifact, each into dist/<artifact-name>/
path: dist
- name: Clean up old release & move tag
run: |
# Find and delete the old Gitea release payload via API
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"${{ github.api_url }}/repos/${{ github.repository }}/releases/tags/nightly" | jq -r '.id')
if [ "$RELEASE_ID" != "null" ] && [ -n "$RELEASE_ID" ]; then
echo "Deleting old release ID: $RELEASE_ID"
curl -s -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"${{ github.api_url }}/repos/${{ github.repository }}/releases/$RELEASE_ID"
fi
# Force the 'nightly' tag onto this commit and push it
git tag -f nightly ${{ github.sha }}
git push -f origin nightly
- name: Publish release
uses: softprops/action-gh-release@v2
with:
tag_name: nightly
target_commitish: ${{ github.sha }}
name: "Nightly Development Build"
body: |
Automated rolling nightly build from the latest commit on `main`.
**Commit:** ${{ github.sha }}
prerelease: true
files: dist/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+33
View File
@@ -0,0 +1,33 @@
[gd_scene format=3 uid="uid://c4m8fwawvvkgn"]
[ext_resource type="Texture2D" uid="uid://qh67enaialkt" path="res://sprites/background/demobackground.PNG" id="1_5a6er"]
[node name="Node2D" type="Node2D" unique_id=1686720967]
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=964065099]
[node name="ColorRect" type="ColorRect" parent="CanvasLayer" unique_id=113370318]
offset_left = 13.0
offset_top = 14.0
offset_right = 266.0
offset_bottom = 63.0
color = Color(0, 0, 0, 1)
[node name="Label" type="Label" parent="CanvasLayer/ColorRect" unique_id=2085880928]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "WRPLAT_TITLE"
horizontal_alignment = 1
[node name="TextureRect" type="TextureRect" parent="CanvasLayer" unique_id=2116447674]
z_index = -1
offset_left = -146.0
offset_right = 2056.0
offset_bottom = 930.0
scale = Vector2(0.695, 0.695)
texture = ExtResource("1_5a6er")
+3
View File
@@ -0,0 +1,3 @@
[gd_resource type="Theme" format=3 uid="uid://nerlsbdjd6qo"]
[resource]
Binary file not shown.

After

Width:  |  Height:  |  Size: 815 KiB

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://qh67enaialkt"
path="res://.godot/imported/demobackground.PNG-dee38cbd46d6cf4b0a16ac1a4003095b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/background/demobackground.PNG"
dest_files=["res://.godot/imported/demobackground.PNG-dee38cbd46d6cf4b0a16ac1a4003095b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1