Skip to content

Commit

Permalink
fix artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 20, 2024
1 parent e0248ce commit 973fb31
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |-
cd book/c3s_eqc_quality_assessments || exit
mkdir wip || exit
for file in ${ALL_CHANGED_FILES}; do
cp ../../"$file" wip/. || exit
done
mkdir ../../pages || exit
for file in wip/*.ipynb; do
jupyter-book build "$file" || exit
prefix=$(basename "$file")
mv _build/_page/wip-"$prefix"/html ../../pages/"$prefix" || exit
mkdir pages || exit
cd book/c3s_eqc_quality_assessments || exit
for fullfile in ${ALL_CHANGED_FILES}; do
filename=$(basename -- "$fullfile")
prefix="${filename%.*}"
cp ../../"$fullfile" "$filename" || exit
jupyter-book build "$filename" || exit
mv _build/_page/"$prefix"/html ../../pages/"$prefix" || exit
done
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 973fb31

Please sign in to comment.