ci: publish launcher to Gitea Release + tdlm-hmcl/latest for TDLMPack #7

Merged
layue13 merged 9 commits from cursor/publish-gitea-artifacts-1729 into main 2026-11-09 21:19:50 +00:00
Owner

Summary

TDLMPack does not Maven-resolve or download HMCL today — only a README repo link. This PR adds launcher binary publish (Release + generic tdlm-hmcl/latest) and points the client fileApi default at the CDN.

fileApi (HMC-15)

Default is now:

https://packages.dandanton.com/tdlm-client/latest

(Same relative package path as Gitea generic …/tdlm-client/latest; CDN root is https://packages.dandanton.com.)

TDLMPack: set Actions var
TDLM_CLIENT_FILE_API=https://packages.dandanton.com/tdlm-client/latest
so server-manifest.json embeds the CDN.

Publish caveat: Pack currently PUTs to TDLM_CLIENT_FILE_API. Either mirror Gitea → CDN, or make CDN accept Pack PUTs — do not leave HMCL on CDN while Pack only writes Gitea without a sync.

Launcher consume path

Stable:

  • https://git.nest.potatolab.uk:8443/api/packages/TDLM/generic/tdlm-hmcl/latest/HMCL.exe
  • …/HMCL.jar

Versioned: https://git.potatolab.uk/TDLM/HMCL/releases/latest

See docs/TDLM_CONSUME.md. After merge: ensure TDLM_PACK_TOKEN, run Publish TDLM launcher. No UI changes.

## Summary TDLMPack does **not** Maven-resolve or download HMCL today — only a README repo link. This PR adds launcher binary publish (Release + generic `tdlm-hmcl/latest`) and points the client **fileApi** default at the CDN. ## fileApi (HMC-15) Default is now: `https://packages.dandanton.com/tdlm-client/latest` (Same relative package path as Gitea generic `…/tdlm-client/latest`; CDN root is `https://packages.dandanton.com`.) **TDLMPack:** set Actions var `TDLM_CLIENT_FILE_API=https://packages.dandanton.com/tdlm-client/latest` so `server-manifest.json` embeds the CDN. **Publish caveat:** Pack currently PUTs to `TDLM_CLIENT_FILE_API`. Either mirror Gitea → CDN, or make CDN accept Pack PUTs — do not leave HMCL on CDN while Pack only writes Gitea without a sync. ## Launcher consume path Stable: - `https://git.nest.potatolab.uk:8443/api/packages/TDLM/generic/tdlm-hmcl/latest/HMCL.exe` - `…/HMCL.jar` Versioned: `https://git.potatolab.uk/TDLM/HMCL/releases/latest` See `docs/TDLM_CONSUME.md`. After merge: ensure `TDLM_PACK_TOKEN`, run **Publish TDLM launcher**. No UI changes.
layue13 force-pushed cursor/publish-gitea-artifacts-1729 from 466d5e93f5 to d9c1e66f03 2026-11-09 21:03:32 +00:00 Compare
layue13 added 9 commits 2026-11-09 21:19:30 +00:00
Add a TDLMPack-oriented publish workflow (nest API, same pattern as
TDLMPack pack.yml) plus docs for the exact consume URLs. Pack builds
still do not Maven-resolve the launcher.
Use https://packages.dandanton.com/tdlm-client/latest (same relative
layout as Pack's tdlm-client/latest). Document TDLM_CLIENT_FILE_API
alignment and the Pack publish/mirror caveat.
Keep secrets.TDLM_PACK_TOKEN (same name as pack.yml); document that it
is currently a TDLMPack repo secret while MAVEN_* are org-level.
Fall back to github.token so release can proceed after merge without a
new HMCL-only secret when the pack token is promoted or unavailable.
Use checkout/setup-java v6 and gradle-actions v5 so act resolves the
same nest-mirrored action tags as Java CI.
Push events were recording empty failed runs (0 jobs) for this
dispatch-only workflow. Guard the job so push is a clean skip.
Gitea was marking publish-tdlm.yml push events as failure with 0 jobs.
Add an explicit push path filter + noop job; keep publish on dispatch.
Unquoted "Example: ..." broke YAML parsing, so Gitea recorded push
runs with 0 jobs as failure.
ci: stop caching entire ~/.gradle/caches (was ~4GB)
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Successful in 13m11s
95111d2f84
layue13 force-pushed cursor/publish-gitea-artifacts-1729 from d9c1e66f03 to 95111d2f84 2026-11-09 21:19:30 +00:00 Compare
layue13 merged commit e81e974af7 into main 2026-11-09 21:19:50 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/HMCL#7