Publish To Spacedock#

workflow publish-to-spacedock#

Publishes a github release to Spacedock. You can reference this workflow from one in your own repository that is triggered on a release being published, so that it automatically also gets uploaded to Spacedock.

Calls get-release-info and then uses KSP2Community’s spacedock-upload action to publish it. You will need to provide your spacedock username and mod id as variables, and the spacedock password as a secret. You could either hardcode the mod ID and username in your repository’s workflow, or use a repository or organization variable.

Example from RasterPropMonitor

Example

- uses: 
    KSPModdingLibs/KSPBuildTools/.github/workflows/publish-to-spacedock.yml@1.1.0

Inputs

input spacedock-username#
Required:
True
Type:
string

Spacedock login username

input mod-id#
Required:
True
Type:
string

ID of the mod we are deploying. Get this from the end of your mod’s spacedock URL

input release-tag#
Required:
False
Type:
string

The tag of the release. Will be the same as inputs.release-tag unless it was blank.

input game-id#
Required:
False
Default:
3102
Type:
string

ID of the game we are deploying for. This should probably be left as-is for KSP 1.

Secrets

secret spacedock-password#
Required:
True

Spacedock login password. Store this as a secret!