CI: publish packed website artifacts alongside the rest

This commit is contained in:
Louis Gesbert 2024-05-15 11:52:23 +02:00
parent 62414562eb
commit 56328fec16

View File

@ -137,6 +137,14 @@ jobs:
cd ~/french-law
opam --cli=2.1 exec -- make dependencies-ocaml dependencies-js dependencies-python
opam --cli=2.1 exec -- make bench_ocaml bench_js bench_python
- name: Pack website assets
run: >-
tar cz -hf website-assets.tar.gz
-C ~/catala-examples/_build/default/tutorial_en/ tutorial_en.html
-C ~/catala-examples/_build/default/tutoriel_fr/ tutoriel_fr.html
-C ~/catala-examples/_build/default/us_tax_code/ us_tax_code.html
-C ~/catala-examples/_build/default/allocations_familiales/ Allocations_familiales.html Allocations_familiales_schema.json
-C ~/catala-examples/_build/default/aides_logement/ Aides_logement.html Aides_logement_schema.json
- name: Gather all artifacts
run: |
cd
@ -148,6 +156,7 @@ jobs:
tar cz -hf "artifacts/french-law_ocaml.tar.gz" -C french-law/_build/install/default/lib french-law
cp catala-examples/_build/french-law_npm.tar.gz artifacts/
cp catala-examples/_build/french_law_python.tar.gz artifacts/
mv website-assets.tar.gz artifacts/
- name: Upload artifacts
continue-on-error: true
# Uploading artifacts works but then return failure with: