Changed to deploy full scripts to docs pages.

This commit is contained in:
Andrew Lalis 2022-12-22 12:32:29 +01:00
parent e84fc835e7
commit dc1450ddd9
1 changed files with 23 additions and 15 deletions

View File

@ -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