51 lines
2.1 KiB
YAML
51 lines
2.1 KiB
YAML
name: Quest Arc Presentation Overlay
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['feat/quest-story-arcs-*']
|
|
|
|
jobs:
|
|
quest-story-arcs:
|
|
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
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '21'
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
gradle-version: '9.2.1'
|
|
- name: Test the journal and package only quest arc classes and art
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
gradle --no-daemon -p DuneRealmsGUI test jar
|
|
mkdir quest-story-arcs
|
|
PYTHONPATH=tools python3 - <<'PY'
|
|
from pathlib import Path
|
|
from quest_arc_artwork import CATALOG, OVERLAY, artwork, gui_entries
|
|
from plugin_wild_update import read_archive, write_archive
|
|
source = read_archive(Path("DuneRealmsGUI/build/libs/DunerealmsGUI.jar").read_bytes())
|
|
Path("quest-story-arcs/donor.zip").write_bytes(write_archive({entry: source[entry] for entry in gui_entries()}))
|
|
assets = artwork(Path("."))
|
|
art = {f"{OVERLAY}/{name}": data for name, data in assets.items()}
|
|
art[CATALOG] = Path(CATALOG).read_bytes()
|
|
Path("quest-story-arcs/artwork.zip").write_bytes(write_archive(art))
|
|
PY
|
|
cp tools/{quest_arc_artwork.py,plugin_wild_update.py} quest-story-arcs/
|
|
printf '%s\n' "$GITHUB_SHA" > quest-story-arcs/SOURCE_COMMIT
|
|
(cd quest-story-arcs && sha256sum -- *.zip *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Quest-Story-Arcs
|
|
path: quest-story-arcs
|
|
if-no-files-found: error
|

Staff