From 0840f27382d5b2b1720d1674862d4f6631440254 Mon Sep 17 00:00:00 2001 From: Jerry Dimitriou Date: Thu, 19 Sep 2024 15:52:29 +0300 Subject: [PATCH] fixed zip file build --- .github/workflows/build-and-deploy-branch.yml | 3 +++ build.sh | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-deploy-branch.yml b/.github/workflows/build-and-deploy-branch.yml index 28eadc18..968dd87d 100644 --- a/.github/workflows/build-and-deploy-branch.yml +++ b/.github/workflows/build-and-deploy-branch.yml @@ -10,6 +10,9 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + + - name: Install zip + run: apt install -y zip - name: Build Spec run: bash ./build.sh diff --git a/build.sh b/build.sh index de221e2e..d478584b 100755 --- a/build.sh +++ b/build.sh @@ -20,12 +20,11 @@ docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n for sch in $PROJECT/rules/sch/*.sch; do docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/schematron:/target klakegg/schematron prepare /src/rules/sch/$(basename $sch) /target/$(basename $sch) done -docker run --rm -i -v $PROJECT/target/site/files:/src alpine:3.6 rm -rf /src/PEPPOLBIS-Upgrade-Schematron.zip -docker run --rm -i -v $PROJECT/target/schematron:/src -v $PROJECT/target/site/files:/target -w /src kramos/alpine-zip -r /target/PEPPOLBIS-Upgrade-Schematron.zip . +rm -rf /src/PEPPOLBIS-Upgrade-Schematron.zip +zip -r target/site/files/PEPPOLBIS-Upgrade-Schematron.zip target/schematron # Example files -docker run --rm -i -v $PROJECT/target/site/files:/src alpine:3.6 rm -rf /src/PEPPOLBIS-Examples.zip -docker run --rm -i -v $PROJECT/rules/examples:/src -v $PROJECT/target/site/files:/target -w /src kramos/alpine-zip -r /target/PEPPOLBIS-Examples.zip . +zip -r target/site/files/PEPPOLBIS-Examples.zip rules/examples # Guides docker run --rm -i -v $PROJECT:/documents -v $PROJECT/target:/target difi/asciidoctor