Changed to deploy full scripts to docs pages.
This commit is contained in:
parent
e84fc835e7
commit
dc1450ddd9
|
@ -21,26 +21,34 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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
|
# - name: Minify Scripts
|
||||||
uses: ljmf00/setup-lua@v1.0.0
|
# run: |
|
||||||
with:
|
# script_dir=docs/src/.vuepress/public/scripts
|
||||||
lua-version: 5.3
|
# rm -rf $script_dir
|
||||||
install-luarocks: true
|
# mkdir $script_dir
|
||||||
|
# lua minify.lua minify src/movescript.lua > $script_dir/movescript.lua
|
||||||
- name: Minify Scripts
|
# 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: |
|
run: |
|
||||||
script_dir=docs/src/.vuepress/public/scripts
|
script_dir=docs/src/.vuepress/public/scripts
|
||||||
rm -rf $script_dir
|
rm -rf $script_dir
|
||||||
mkdir $script_dir
|
mkdir $script_dir
|
||||||
lua minify.lua minify src/movescript.lua > $script_dir/movescript.lua
|
cp src/* $script_dir/
|
||||||
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: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
|
Loading…
Reference in New Issue