From 7fa7dd6b79b82fdd3d3d20538c5f0eb02966c82b Mon Sep 17 00:00:00 2001 From: Zaytha Date: Sun, 6 Jul 2025 05:35:19 -0700 Subject: [PATCH] Adding steam publishing --- .gitea/workflows/godot-ci.yml | 20 ++++++++++++++++++- .../steam/app_build_2739610.vdf | 14 +++++++++++++ .../steam/depot_build_2739611.vdf | 18 +++++++++++++++++ .../steam/depot_build_2739612.vdf | 18 +++++++++++++++++ demo_scene.tscn | 8 +++++++- new_script.gd | 7 +++++++ new_script.gd.uid | 1 + 7 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 build/build_dependencies/steam/app_build_2739610.vdf create mode 100644 build/build_dependencies/steam/depot_build_2739611.vdf create mode 100644 build/build_dependencies/steam/depot_build_2739612.vdf create mode 100644 new_script.gd create mode 100644 new_script.gd.uid diff --git a/.gitea/workflows/godot-ci.yml b/.gitea/workflows/godot-ci.yml index 2f4f83e..3684203 100644 --- a/.gitea/workflows/godot-ci.yml +++ b/.gitea/workflows/godot-ci.yml @@ -81,4 +81,22 @@ jobs: uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea with: name: linux - path: build/linux \ No newline at end of file + path: build/linux + + steam_publish: + name: Steam Publiish + runs-on: cm2network/steamcmd + needs: [export-windows, export-linux] + steps: + - name: Read Cache + run: | + echo "TODO Read Cache" + - name: Update VDF + run: | + sed -i -e "s/STEAM_DESCRIPTION/${GITHUB_REF_NAME} - ${GITHUB_SHA:0:8}/" build_scripts/steam/app_build_2739610.vdf; + - name: Publish to Steam + run: | + /home/steam/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ secrets.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build_scripts/steam/app_build_2739610.vdf" +quit + - name: Cache Config and sentry + run: | + echo "TODO Cache Config and sentry" \ No newline at end of file diff --git a/build/build_dependencies/steam/app_build_2739610.vdf b/build/build_dependencies/steam/app_build_2739610.vdf new file mode 100644 index 0000000..e8ee772 --- /dev/null +++ b/build/build_dependencies/steam/app_build_2739610.vdf @@ -0,0 +1,14 @@ +"AppBuild" +{ + "AppID" "2739610" + "Desc" "STEAM_DESCRIPTION" + "Preview" "0" + "SetLive" "gitea-actions" + "ContentRoot" "..\..\bin\" + "BuildOutput" "..\..\steam_build_output\" + "Depots" + { + "2739611" "depot_build_2739611.vdf" + "2739612" "depot_build_2739612.vdf" + } +} diff --git a/build/build_dependencies/steam/depot_build_2739611.vdf b/build/build_dependencies/steam/depot_build_2739611.vdf new file mode 100644 index 0000000..5824d89 --- /dev/null +++ b/build/build_dependencies/steam/depot_build_2739611.vdf @@ -0,0 +1,18 @@ +"DepotBuild" +{ + "DepotID" "2739611" + + "FileMapping" + { + // This can be a full path, or a path relative to ContentRoot + "LocalPath" "windows\*" + + // This is a path relative to the install folder of your game + "DepotPath" "." + + // If LocalPath contains wildcards, setting this means that all + // matching files within subdirectories of LocalPath will also + // be included. + "Recursive" "1" + } +} diff --git a/build/build_dependencies/steam/depot_build_2739612.vdf b/build/build_dependencies/steam/depot_build_2739612.vdf new file mode 100644 index 0000000..3421441 --- /dev/null +++ b/build/build_dependencies/steam/depot_build_2739612.vdf @@ -0,0 +1,18 @@ +"DepotBuild" +{ + "DepotID" "2739612" + + "FileMapping" + { + // This can be a full path, or a path relative to ContentRoot + "LocalPath" "linux\*" + + // This is a path relative to the install folder of your game + "DepotPath" "." + + // If LocalPath contains wildcards, setting this means that all + // matching files within subdirectories of LocalPath will also + // be included. + "Recursive" "1" + } +} diff --git a/demo_scene.tscn b/demo_scene.tscn index afb746e..43ec565 100644 --- a/demo_scene.tscn +++ b/demo_scene.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=5 format=3 uid="uid://bgpec3avuotkt"] +[gd_scene load_steps=6 format=3 uid="uid://bgpec3avuotkt"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_no5d7"] sky_top_color = Color(0.340506, 0.443905, 0.662582, 1) @@ -19,6 +19,8 @@ glow_enabled = true [sub_resource type="CapsuleMesh" id="CapsuleMesh_ayuu8"] +[sub_resource type="SphereMesh" id="SphereMesh_no5d7"] + [node name="Node3D" type="Node3D"] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] @@ -33,5 +35,9 @@ environment = SubResource("Environment_8n7uv") transform = Transform3D(0.796688, 0.604391, 0, -0.604391, 0.796688, 0, 0, 0, 1, 0, 0, 0) mesh = SubResource("CapsuleMesh_ayuu8") +[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] +transform = Transform3D(0.796688, 0.604391, 0, -0.604391, 0.796688, 0, 0, 0, 1, -0.779875, 0.463808, 0) +mesh = SubResource("SphereMesh_no5d7") + [node name="Camera3D" type="Camera3D" parent="."] transform = Transform3D(-0.998152, 0, -0.0607699, 0, 1, 0, 0.0607699, 0, -0.998152, 0, 0, -2.11699) diff --git a/new_script.gd b/new_script.gd new file mode 100644 index 0000000..c60743b --- /dev/null +++ b/new_script.gd @@ -0,0 +1,7 @@ +extends Node + +# TODO +# Figure out how to name export +# Move export tempaltes out of the upload and into their own space to be downloaded from +# Steam build +# create tag on build with beta, branch, and commit version diff --git a/new_script.gd.uid b/new_script.gd.uid new file mode 100644 index 0000000..927599b --- /dev/null +++ b/new_script.gd.uid @@ -0,0 +1 @@ +uid://yj3hgyynjcvp