From dc1450ddd9e51b1f5cdbfa9fb0fc81c4b186f522 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 22 Dec 2022 12:32:29 +0100 Subject: [PATCH] Changed to deploy full scripts to docs pages. --- .github/workflows/deploy-docs2.yml | 38 ++++++++++++++++++------------ 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy-docs2.yml b/.github/workflows/deploy-docs2.yml index 2c38f16..164d8b0 100644 --- a/.github/workflows/deploy-docs2.yml +++ b/.github/workflows/deploy-docs2.yml @@ -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