GDQuest / learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
https://gdquest.github.io/learn-gdscript/
Other
2.11k stars 160 forks source link

Web staging builds are failing with latest commits and build an outdated version #328

Closed NathanLovato closed 2 years ago

NathanLovato commented 2 years ago

See https://github.com/GDQuest/learn-gdscript/runs/5215629805?check_suite_focus=true for the latest attempt. Error message:

Run ./run push web
`build/web` does not seem to exist. Did you type the name correctly?
Error: Process completed with exit code 1.

Right now, an outdated version of the app is live on staging.

NathanLovato commented 2 years ago

Fixed by dee9e44acacc720dea042a9d3899936d0fedbc3b

Xananax commented 2 years ago

Ok, it's fixed.

Some documentation for what I've made, that I'm not sure where to write.

Change 1: run helper

There's a small bash script at the project root, which helps building, testing, and cleaning up. I needed this to simplify the CI setup (so I could test more things locally), but also to be able to edit quickly the web build.

A few examples:

Change 2: CI

The CI will autostart from release and staging. The behavior is as follows:

The important part to understand is that while the CI auto-triggers from release and staging, it can be manually triggered from any branch. That means if we make a special build that we call special, and run the CI on that, we'll get files tagged special on itch, and a subdirectory gdquest.github.io/learn-gdscript/special. This should allow for easily distributing experiments