Changed to deploy full scripts to docs pages.
This commit is contained in:
parent
e84fc835e7
commit
dc1450ddd9
|
@ -21,26 +21,34 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Disabled minification for now.
|
||||
# - name: Install Lua
|
||||
# uses: ljmf00/setup-lua@v1.0.0
|
||||
# with:
|
||||
# lua-version: 5.3
|
||||
# install-luarocks: true
|
||||
|
||||
- name: Install Lua
|
||||
uses: ljmf00/setup-lua@v1.0.0
|
||||
with:
|
||||
lua-version: 5.3
|
||||
install-luarocks: true
|
||||
|
||||
- name: Minify Scripts
|
||||
# - name: Minify Scripts
|
||||
# run: |
|
||||
# script_dir=docs/src/.vuepress/public/scripts
|
||||
# rm -rf $script_dir
|
||||
# mkdir $script_dir
|
||||
# lua minify.lua minify src/movescript.lua > $script_dir/movescript.lua
|
||||
# lua minify.lua minify src/itemscript.lua > $script_dir/itemscript.lua
|
||||
|
||||
# - name: Clean Up Lua Artifacts
|
||||
# run: |
|
||||
# rm -rf .lua
|
||||
# rm -rf .luarocks
|
||||
# rm -rf .source
|
||||
|
||||
- name: Copy scripts to Docs public assets
|
||||
run: |
|
||||
script_dir=docs/src/.vuepress/public/scripts
|
||||
rm -rf $script_dir
|
||||
mkdir $script_dir
|
||||
lua minify.lua minify src/movescript.lua > $script_dir/movescript.lua
|
||||
lua minify.lua minify src/itemscript.lua > $script_dir/itemscript.lua
|
||||
|
||||
- name: Clean Up Lua Artifacts
|
||||
run: |
|
||||
rm -rf .lua
|
||||
rm -rf .luarocks
|
||||
rm -rf .source
|
||||
cp src/* $script_dir/
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
|
|
Loading…
Reference in New Issue