Index of every page on this site: llms.txt
All skills
jame581 avatar

/export-pipeline

@426e8ab
by Jan Mesarčjame581/godotprompter979 stars
63
Run it yourself

Use when exporting and distributing Godot games — export presets, platform settings, CI/CD with GitHub Actions

Use this Skill: https://skilld.dev/gh/jame581/godotprompter/export-pipeline

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesversioning.md

≈596 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Versioning

Reference for skills/export-pipeline/SKILL.md — reading the project version at runtime, injecting it from git tags before export, and the tag convention.

← Back to SKILL.md


5. Versioning

Reading the Version at Runtime

Store the version string in Project → Project Settings → Application → Config → Version. Then read it anywhere:

# version_label.gd
extends Label

func _ready() -> void:
    text = "v" + ProjectSettings.get_setting("application/config/version", "dev")
// VersionLabel.cs
using Godot;

public partial class VersionLabel : Label
{
    public override void _Ready()
    {
        Text = "v" + ProjectSettings.GetSetting("application/config/version", "dev").AsString();
    }
}

Auto-Versioning from Git Tags

Tag your release commit, then inject the version at export time. The CI workflow in ci-cd-github-actions.md does this via sed, but you can also run a GDScript tool if you prefer to keep it in-engine. --script only runs a script that extends SceneTree or MainLoop — an EditorScript fails there with "Class 'EditorScript' can only be instantiated by editor":

# tools/inject_version.gd  — run with: godot --headless --script tools/inject_version.gd
extends SceneTree

func _init() -> void:
    var git_output: Array = []
    var exit_code := OS.execute("git", ["describe", "--tags", "--always", "--dirty"], git_output)
    if exit_code != 0:
        push_error("inject_version: git describe failed")
        quit(1)
        return

    var version: String = (git_output[0] as String).strip_edges()
    ProjectSettings.set_setting("application/config/version", version)
    var err := ProjectSettings.save()
    if err != OK:
        push_error("inject_version: failed to save project.godot — error %d" % err)
        quit(1)
        return
    print("inject_version: set version to '%s'" % version)
    quit()

Run it as part of a CI step before the export step:

godot --headless --script tools/inject_version.gd
godot --headless --export-release "Windows Desktop" build/windows/MyGame.exe

Version Tag Convention

Use Semantic Versioning tags: v1.2.3. git describe then produces v1.2.3-4-gabcdef for commits after a tag, giving you fully traceable builds.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    This skill provides a standard and secure guide for Godot 4.3+ export pipelines, including CI/CD integration. It correctly advises using environment variables for sensitive credentials and utilizes well-known tools from the Godot community.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: MEDIUM · 1 issue

Signed by skilld at 426e8ab. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated last week

README badge

README badge for jame581/godotprompter/export-pipeline