-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: experimental thumbs artifact
Also renames an unrelated file... Groan...
- Loading branch information
1 parent
1c3846b
commit c5e5c9f
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
File renamed without changes