Skip to content

Commit

Permalink
fixed zip file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jerouris committed Dec 2, 2024
1 parent a152bf6 commit f3fed68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-barnch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v2

- name: Build Spec
run: bash ./build.sh
run: sudo bash ./build.sh

- name: Deploy on S3
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v2

- name: Build Spec
run: bash ./build.sh
run: sudo bash ./build.sh

- name: Deploy on S3
env:
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entry
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Query -s:/src/rules/sch/PEPPOL-EN16931-UBL.sch -q:tools/xquery/rules_asciidoc_peppol_national.xquery -o:/target/PEPPOL-EN16931-UBL-NATIONAL.sch.adoc

# Example files
docker run --rm -i -v $PROJECT/target/site/files:/src alpine:3.6 rm -rf /src/BIS-Billing3-Examples.zip
docker run --rm -i -v $PROJECT/rules/examples:/src -v $PROJECT/target/site/files:/target -w /src kramos/alpine-zip -r /target/BIS-Billing3-Examples.zip .
rm -rf $PROJECT/target/site/files/BIS-Billing3-Examples.zip

cd $PROJECT
zip -r target/site/files/BIS-Billing3-Examples.zip rules/examples

# Guides
docker run --rm -i -v $PROJECT:/documents -v $PROJECT/target:/target difi/asciidoctor
Expand Down

0 comments on commit f3fed68

Please sign in to comment.