Skip to content

chore: fix hosting examples — upgrade to @dfinity/asset-canister@v2.2.1#1377

Merged
marc0olo merged 3 commits into
masterfrom
chore/fix-hosting-examples
Jun 12, 2026
Merged

chore: fix hosting examples — upgrade to @dfinity/asset-canister@v2.2.1#1377
marc0olo merged 3 commits into
masterfrom
chore/fix-hosting-examples

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Upgrades @dfinity/asset-canister from v2.1.0 to v2.2.1 in both hosting/photo-storage and hosting/unity-webgl-template (v2.1.0 dropped support for the assets sync step)
  • Renames canisters to frontend per AGENTS.md conventions (photo-storagefrontend, unity_webgl_template_assetsfrontend)
  • Rewrites both CI workflows to use the modern single-job pattern: ubuntu-24.04, npm install -g @icp-sdk/icp-cli @icp-sdk/ic-wasm ic-mops, no provision scripts, no macOS runner, no pre-download-launcher

Test plan

  • Verify hosting-photo-storage workflow passes on the PR
  • Verify hosting-unity-webgl workflow passes on the PR
  • Confirm both icp.yaml files reference @dfinity/asset-canister@v2.2.1 and canister name frontend
  • Confirm workflow files no longer reference provision scripts or macOS runners

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo requested review from a team as code owners June 12, 2026 07:30
marc0olo and others added 2 commits June 12, 2026 09:49
- Switch all three hosting workflows from manual npm install to
  container: ghcr.io/dfinity/icp-dev-env-all:0.3.2 (no ic-mops/ic-wasm
  needed — these are pure asset canister examples)
- Add hosting/static-website to the PR: bump @dfinity/asset-canister
  v2.1.0 → v2.2.1 and modernize its workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace src/<canister_name>/ nesting with a flat frontend/ directory
in both unity-webgl-template and godot-html5-template:
  src/<name>/assets/ → frontend/assets/
  src/<name>/src/index.html → frontend/index.html

Also:
- godot: rename canister from godot_html5_assets → frontend
- godot: bump @dfinity/asset-canister v2.1.0 → v2.2.1
- godot: add CI workflow (was missing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo merged commit b11bccd into master Jun 12, 2026
9 checks passed
@marc0olo marc0olo deleted the chore/fix-hosting-examples branch June 12, 2026 10:46
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.

2 participants