38 lines
1.9 KiB
YAML
38 lines
1.9 KiB
YAML
name: Supplied Dune Item Art Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['feat/supplied-item-art-*']
|
|
|
|
jobs:
|
|
supplied-item-art:
|
|
runs-on: dune-ci
|
|
steps:
|
|
- name: Check out exact revision
|
|
shell: bash
|
|
env:
|
|
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
git init .
|
|
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
git checkout --detach FETCH_HEAD
|
|
- name: Build both retained pack variants
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
mkdir supplied-item-art
|
|
python3 tools/build-unified-resourcepack.py --source "$GITHUB_SHA" --output candidate-source.zip
|
|
curl --fail --location --retry 2 https://www.dunerealms.com/downloads/DuneRealms-Resources-ab1b9f8915ba2a68a7388cdf5f55ff76349b0339.zip -o arrakis-baseline.zip
|
|
curl --fail --location --retry 2 https://www.dunerealms.com/downloads/DuneRealms-Resources-2faba139906da15741db2702b3bed3e92ad7ee26.zip -o fleet-baseline.zip
|
|
for variant in arrakis fleet; do
|
|
python3 tools/plugin_supplied_item_art.py "$variant" "$variant-baseline.zip" candidate-source.zip network/resource-pack/dune-items/publication-pins.json "supplied-item-art/DuneRealms-ItemArt-$GITHUB_SHA-$variant.zip" > "supplied-item-art/$variant.json"
|
|
done
|
|
printf '%s\n' "$(git rev-parse HEAD)" > supplied-item-art/SOURCE_COMMIT
|
|
cp tools/plugin_supplied_item_art.py network/resource-pack/dune-items/publication-pins.json supplied-item-art/
|
|
(cd supplied-item-art && sha256sum -- *.zip *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Supplied-Item-Art
|
|
path: supplied-item-art/
|
|
if-no-files-found: error
|

Staff