Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/ocp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- id: list-models
# thanks, https://code.dblock.org/2021/09/03/generating-task-matrix-by-looping-over-repo-files-with-github-actions.html
# set xargs -n[NUM] to calculate more than 1 model per job, e.g. xargs -n5. cave: this will break caching!
run: echo "::set-output name=models::$(ls -l static/mmci-cli/models | awk '/^d/ {print $9}' | xargs -n1 | sed 's| |,|g' | jq -R -s -c 'split("\n")[:-1]')"
run: echo "models=$(ls -l static/mmci-cli/models | awk '/^d/ {print $9}' | xargs -n1 | sed 's| |,|g' | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT

simulate:
needs:
Expand Down Expand Up @@ -78,9 +78,9 @@ jobs:

- if: github.ref == 'refs/heads/master'
name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: data
name: data-model-${{ matrix.MODEL_NAMES }}
path: static/mmci-cli/out/*.json
overwrite: true

Expand All @@ -103,10 +103,11 @@ jobs:
- run: npm i
- run: npm run build:web

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
name: data
path: dist/web/data
pattern: data-model-*
merge-multiple: true

# todo: switch to official pages action when it's prod ready (https://github.com/actions/deploy-pages)
- name: Deploy
Expand Down
Loading