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