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

@ -22,25 +22,33 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Lua # Disabled minification for now.
uses: ljmf00/setup-lua@v1.0.0 # - name: Install Lua
with: # uses: ljmf00/setup-lua@v1.0.0
lua-version: 5.3 # with:
install-luarocks: true # 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: | 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