Skip to content

feat: upload map image assets to the wiki#405

Draft
LVL1024 wants to merge 5 commits into
developfrom
feature/upload-map-assets
Draft

feat: upload map image assets to the wiki#405
LVL1024 wants to merge 5 commits into
developfrom
feature/upload-map-assets

Conversation

@LVL1024

@LVL1024 LVL1024 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Uploads the three map plot images (golden statues, crate locations, shop locations) generated by the map parser to the wiki File namespace.

Adds a --force-asset-upload flag that can be toggled via workflow dispatch to re-upload existing images when map data changes.

Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data

LVL1024 added 3 commits July 7, 2026 20:25
Adds IMAGE_FILE_MAP to pages.py with the three map plot images
(golden statues, crate locations, shop locations) and a new
_upload_assets() method in upload.py that uploads them to the
File: namespace. Skips files that already exist on the wiki to
avoid creating unnecessary file revisions.
Adds a CLI argument and environment variable (FORCE_ASSET_UPLOAD)
that, when enabled, skips the existence check in _upload_assets()
and overwrites the file on the wiki. Useful when map data changes
and editors need to refresh the images.
Adds force-asset-upload as a workflow_dispatch input on both
deploy.yaml and auto-deploy.yaml, and passes it through as the
FORCE_ASSET_UPLOAD environment variable to the bot. When triggered
manually, editors can select this option to force re-upload of
map images that changed on disk.
LVL1024 added 2 commits July 7, 2026 20:46
github.event.inputs only exists on workflow_dispatch events.
When the deploy workflow is invoked via workflow_call (from
auto-deploy.yaml), inputs must be read from the inputs context
instead. Both ENGLISH_ONLY and FORCE_ASSET_UPLOAD now use an
expression that checks the event type to select the correct
context.

Also adds FORCE_ASSET_UPLOAD to .env.example and the parameter
table in README.md.
docker-compose.yml only passes explicitly listed environment variables
to the container. Without this entry, FORCE_ASSET_UPLOAD computed in the
deploy workflow step would silently fall through to the default (false)
inside the container, making the flag non-functional in CI.
@LVL1024 LVL1024 requested a review from hassayag July 9, 2026 13:46
@LVL1024 LVL1024 linked an issue Jul 9, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload map image assets to the wiki

1 participant