Open umarcor opened 1 year ago
I don't think it's possible to implement a redirect in any other way due to the "serverless" aspect of GH Pages, but I can output a JSON with target links, if it helps.
E.g. it can be some /download/godotengine/godot/master/latest.json
with the mapping for artifact name and the URL as a top-level object.
That would certainly help!
When
curl
orget
are used to get latestlinux-editor-mono
orlinux-template-minimal
, instead of downloading the zipfiles, HTML pages are written. See https://github.com/umarcor/godot-commit-artifacts/commit/577ee335e2f8058051d51dbb2996f86b25c948bc and https://github.com/umarcor/godot-commit-artifacts/actions/runs/4548687288/jobs/8019967935:I though I might download the JSON files (https://github.com/godotengine/godot-commit-artifacts/tree/gh-pages/data), for instance https://godotengine.github.io/godot-commit-artifacts/data/godotengine.godot.master.json, but I can't see how to get the URL from there without reimplementing the logic.