Skip to content

Generate medias from Musescore files #8

Generate medias from Musescore files

Generate medias from Musescore files #8

#
name: Generate medias from Musescore files
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
workflow_dispatch:
jobs:
generate-medias:
runs-on: ubuntu-latest
container:
image: ghcr.io/soprodecarnaval/musicoteca:main
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate media generator file
run: |
find public/collection/ -type f -name "*.mscz" | jq -R -s -c 'split("\n") | map(select(.!="") | sub(".mscz";"") | {"in":"\(.).mscz", "out": [[ "\(.)_",".svg"],[ "\(.)_",".midi"],"\(.).midi","\(.).metajson"]})' > media-generation.json
head media-generation.json
musescore-cli -j media-generation.json
# index-files: