Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/release-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,25 @@ jobs:
echo "previous_tag=$prev" >> $GITHUB_OUTPUT

if [ -z "$prev" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
exit 0
echo "changed=true" >> $GITHUB_OUTPUT
exit 0
fi

echo "Previous tag: $prev"
echo "Current commit: $current"

diff=$(git diff --name-only "$prev" "$current")
echo "diff_files=$diff" >> $GITHUB_OUTPUT

{
echo "diff_files<<EOF"
echo "$diff"
echo "EOF"
} >> "$GITHUB_OUTPUT"

if echo "$diff" | grep -qE '^StarMap.API/|^StarMap.API.csproj'; then
echo "changed=true" >> $GITHUB_OUTPUT
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
echo "changed=false" >> $GITHUB_OUTPUT
fi

- name: Pack and push StarMap.API (if changed)
Expand Down
12 changes: 6 additions & 6 deletions StarMap.API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Any method within this class that has any of the attributes will used, so if two

## Attributes

- StarMapMod: Main attribute to mark the mod class
- StarMapImmediateLoad: Called immediatly when the mod is loaded in KSA
- StarMapAllModsLoaded: Called once all mods are loaded, can be used when this mod has a dependency on another mod
- StarMapUnload: Called when KSA is unloaded
- StarMapBeforeGui: Called just before KSA starts drawing its Ui
- StarMapAfterGui: Called after KSA has drawn its Ui
- StarMapMod: Main attribute to mark the mod class.
- StarMapImmediateLoad: Called immediatly when the mod is loaded in KSA.
- StarMapAllModsLoaded: Called once all mods are loaded, can be used when this mod has a dependency on another mod.
- StarMapUnload: Called when KSA is unloaded.
- StarMapBeforeGui: Called just before KSA starts drawing its Ui.
- StarMapAfterGui: Called after KSA has drawn its Ui.
Loading