From 5ef8f9f66cb983bb7550fc1960c96f263e85a93e Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Fri, 5 Jul 2024 15:40:16 +0200 Subject: [PATCH] build additional unminified extension in gh actions (cf georchestra/mapstore2-georchestra#545) (#172) --- .github/workflows/cadastrapp.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/cadastrapp.yml b/.github/workflows/cadastrapp.yml index e2f6c11..7ba86f2 100644 --- a/.github/workflows/cadastrapp.yml +++ b/.github/workflows/cadastrapp.yml @@ -41,3 +41,15 @@ jobs: with: name: Cadastrapp-${{ github.sha }} path: dist/Cadastrapp.zip + + - name: "change webpack config to avoid minification" + run: sed -i -e 's/prod: true/prod: false/' build/extension/prod-webpack.config.js + + - name: "build unminified" + run: npm run ext:build + + - name: "publish zip as artifact" + uses: actions/upload-artifact@v1 + with: + name: Cadastrapp-unminified-${{ github.sha }} + path: dist/Cadastrapp.zip