Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to GitHub Pages #5

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

wjt
Copy link
Member

@wjt wjt commented Oct 25, 2024

Identical to endlessm/moddable-platformer#4 except including the two fixups I subsequently pushed to main there.

https://phabricator.endlessm.com/T35699

This preset is just the default settings for the Web target (as of
v4.3.stable.flathub [77dcf97d8], at least).

The important line is:

variant/thread_support=false

This selects a build of the Godot web runtime that does not use threads; and
hence does not use SharedArrayBuffer; and hence can be used on GitHub Pages
where the necessary headers to allow SharedArrayBuffer to be used cannot be
set.

https://phabricator.endlessm.com/T35699
While it is not necessarily useful to have this game in its default state
published to the web, this workflow can be used by a learner who has customised
the game in their own repo.

The workflow is designed to fail gracefully if GitHub Pages is not available
(which is typically the case in a private repo owned by a free account) or not
configured correctly.

It also only runs on releases or when manually triggered, to avoid running it
each time a learner pushes or merges to main.

https://phabricator.endlessm.com/T35699
This workflow is intended to be useful to learners who have forked this game as
a basis for their own modified game. But rather than using an actual fork, they
will likely have downloaded the game from the asset library and committed it to
a fresh repository.

https://phabricator.endlessm.com/T35699
Copy link
Member

@cassidyjames cassidyjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bluey voice: “Let’s do this!”

@cassidyjames cassidyjames merged commit 424fe8e into main Oct 25, 2024
1 check passed
@wjt wjt deleted the T35699-publish-to-github-pages branch October 25, 2024 18:54
@cassidyjames
Copy link
Member

cassidyjames commented Oct 25, 2024

Someone in @endlessm/endless-developers with admin access to this repo, please enable GitHub Pages in the repo settings. While you're at it, you can set this repo's URL (on the main/"Code" tab) to https://endlessm.github.io/moddable-pong/ to make the link more discoverable.

Edit: in the wise words of @wjt in endlessm/moddable-platformer#4 (comment):

Maybe the repo URL would be better as the assetlib entry. The web version of the game is not really the interesting part - the point is to get the game into Godot and hack it. We could adjust the readme and mention the web build there.

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