diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-28 12:30:36 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-28 12:30:58 -0300 |
commit | 23d410508452e14f61552c35785b561b92e6bae3 (patch) | |
tree | 30e2bf79dfcb6862adc7b1d6a14f8b08a394c127 /.github | |
parent | 63069427dbe81108ec0bc742fd76828315966bdd (diff) |
experimental "build canonical preview" GitHub workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-canonical-preview.yml | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/.github/workflows/build-canonical-preview.yml b/.github/workflows/build-canonical-preview.yml new file mode 100644 index 0000000..a48e14d --- /dev/null +++ b/.github/workflows/build-canonical-preview.yml @@ -0,0 +1,74 @@ +name: Build Canonical Preview + +on: + push: + branches: [ "preview" ] + + workflow_dispatch: null + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Install ImageMagick + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: imagemagick + version: 1.0 + + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: lts/Iron + check-latest: true + + - name: Checkout canonical data repo + uses: actions/checkout@v4 + with: + repository: hsmusic/hsmusic-data + ref: preview + path: data + + - name: Checkout canonical code repo + uses: actions/checkout@v4 + with: + repository: hsmusic/hsmusic-wiki + ref: preview + path: code + + - name: Checkout canonical media repo + uses: actions/checkout@v4 + with: + repository: hsmusic/hsmusic-media + ref: preview + path: media + + - name: Install code repository + working-directory: ./code + run: npm ci + + - name: Generate thumbnails + run: | + hsmusic \ + --show-step-summary \ + --data-path data \ + --media-path media \ + --thumbs-only + + - name: Run data processing-only pass + run: | + hsmusic \ + --show-step-summary \ + --data-path data \ + --media-path media \ + --no-build + + - name: Perform full-site static build + run: | + mkdir out + hsmusic \ + --data-path data \ + --media-path media \ + --static-build \ + --out-path out |