From d70bfe36679930305e93cf4deb48850b263c9a8d Mon Sep 17 00:00:00 2001 From: Robert Jelic Date: Sun, 9 Feb 2025 15:43:10 +0100 Subject: [PATCH] Test --- .github/workflows/docs.yml | 14 ++++++++++++-- .github/workflows/minify.yml | 6 +++--- src/main.lua | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 506c8c8..57d272f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,8 +25,18 @@ jobs: - name: Install Lua and LDoc run: | sudo apt-get update - sudo apt-get install -y lua5.3 luarocks - sudo luarocks install ldoc + sudo apt-get install -y lua5.3 \ + lua5.3-dev \ + liblua5.3-dev \ + luarocks \ + build-essential \ + libreadline-dev + + # Konfiguriere LuaRocks für Lua 5.3 + sudo luarocks --lua-version=5.3 install ldoc + + # Verifiziere Installation + ldoc --version || exit 1 - name: Generate Documentation run: | diff --git a/.github/workflows/minify.yml b/.github/workflows/minify.yml index ffe7aac..6bfe0af 100644 --- a/.github/workflows/minify.yml +++ b/.github/workflows/minify.yml @@ -104,14 +104,14 @@ jobs: - name: Commit minified Lua file if: success() run: | - if [ -s release/project.min.lua ]; then + if [ -s release/basalt.lua ]; then git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add release/project.min.lua + git add release/basalt.lua git commit -m 'Minify all Lua files into project bundle' git push else - echo "Error: project.min.lua is empty or doesn't exist" + echo "Error: basalt.lua is empty or doesn't exist" exit 1 fi env: diff --git a/src/main.lua b/src/main.lua index 6574f2c..e720a9f 100644 --- a/src/main.lua +++ b/src/main.lua @@ -112,5 +112,6 @@ function basalt.run(isActive) end end end +basalt.autoUpdate = basalt.run return basalt \ No newline at end of file