From c5e5c9f5b2f0147ebadaedce4e033392c4976f5a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 28 Oct 2023 13:07:18 -0300 Subject: [PATCH] actions: experimental thumbs artifact Also renames an unrelated file... Groan... --- .../workflows/archive_thumbnails_artifact.yml | 46 ++++++++++++++++++ misc/{musicEBHH.PNG => music-ebhh.png} | Bin 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/archive_thumbnails_artifact.yml rename misc/{musicEBHH.PNG => music-ebhh.png} (100%) diff --git a/.github/workflows/archive_thumbnails_artifact.yml b/.github/workflows/archive_thumbnails_artifact.yml new file mode 100644 index 00000000..a8cbc5a8 --- /dev/null +++ b/.github/workflows/archive_thumbnails_artifact.yml @@ -0,0 +1,46 @@ +name: Archive Thumbnails Artifact + +on: + push: + branches: [ "release" "staging" "preview" ] + + workflow_dispatch: null + +jobs: + prepare_media: + runs-on: ubuntu-latest + + steps: + - name: Install ImageMagick + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: imagemagick + version: 1.0 + + - name: Checkout corresponding canonical data repo + uses: actions/checkout@v4 + with: + repository: hsmusic/hsmusic-data + ref: ${{ github.ref_name }} + path: data + + - name: Checkout media repo + uses: actions/checkout@v4 + with: + repository: hsmusic/hsmusic-media + ref: ${{ github.ref }} + path: media + + - name: Generate thumbnails + run: | + node code/src/upd8.js \ + --show-step-summary \ + --data-path data \ + --media-path media \ + --thumbs-only + + - name: Archive thumbnails artifact + uses: actions/upload-artifact@v3 + with: + name: media + path: media diff --git a/misc/musicEBHH.PNG b/misc/music-ebhh.png similarity index 100% rename from misc/musicEBHH.PNG rename to misc/music-ebhh.png