Test
This commit is contained in:
14
.github/workflows/docs.yml
vendored
14
.github/workflows/docs.yml
vendored
@@ -25,8 +25,18 @@ jobs:
|
|||||||
- name: Install Lua and LDoc
|
- name: Install Lua and LDoc
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y lua5.3 luarocks
|
sudo apt-get install -y lua5.3 \
|
||||||
sudo luarocks install ldoc
|
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
|
- name: Generate Documentation
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/minify.yml
vendored
6
.github/workflows/minify.yml
vendored
@@ -104,14 +104,14 @@ jobs:
|
|||||||
- name: Commit minified Lua file
|
- name: Commit minified Lua file
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
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.name 'github-actions[bot]'
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
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 commit -m 'Minify all Lua files into project bundle'
|
||||||
git push
|
git push
|
||||||
else
|
else
|
||||||
echo "Error: project.min.lua is empty or doesn't exist"
|
echo "Error: basalt.lua is empty or doesn't exist"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -112,5 +112,6 @@ function basalt.run(isActive)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
basalt.autoUpdate = basalt.run
|
||||||
|
|
||||||
return basalt
|
return basalt
|
||||||
Reference in New Issue
Block a user